micro/network/network.go

19 lines
336 B
Go
Raw Normal View History

2019-07-31 17:22:57 +03:00
// Package network is for building peer to peer networks
package network
// Network is a
type Network interface {
// Name of the network
Name() string
// Connect starts the network node
Connect() error
// Close shutsdown the network node
Close() error
}
var (
DefaultName = "go.micro.network"
DefaultNetwork = NewNetwork()
)