First attempt to implement default network interface

This commit is contained in:
Milos Gajdos
2019-08-20 21:12:21 +01:00
parent 30dd3f54f0
commit fcec6e8eae
3 changed files with 331 additions and 3 deletions

View File

@@ -2,6 +2,8 @@
package network
import (
"time"
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/server"
)
@@ -11,6 +13,8 @@ var (
DefaultName = "go.micro.network"
// DefaultAddress is default network address
DefaultAddress = ":0"
// ResolveTime ddefines the time we periodically resolve network nodes
ResolveTime = 1 * time.Minute
)
// Network is micro network