Documentation ¶
Index ¶
- Constants
- Variables
- type Conn
- func (this *Conn) AddNode(id uint64, address string)
- func (this *Conn) Address() string
- func (this *Conn) Close()
- func (this *Conn) Dial(id uint64) (*grpc.ClientConn, error)
- func (this *Conn) DialAddress(address string) (*grpc.ClientConn, error)
- func (this *Conn) Id() uint64
- func (this *Conn) NodeChangesNotifications() <-chan *nodesChange
- func (this *Conn) NodeIds() []uint64
- func (this *Conn) Nodes() map[uint64]string
- func (this *Conn) RemoveNode(id uint64)
Constants ¶
View Source
const ( NodesChangeAddNode nodesChangeType = iota NodesChangeRemoveNode )
Variables ¶
View Source
var (
NodeAddressNotFoundError error = errors.New("Node address not found")
)
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) DialAddress ¶
func (this *Conn) DialAddress(address string) (*grpc.ClientConn, error)
func (*Conn) NodeChangesNotifications ¶
func (this *Conn) NodeChangesNotifications() <-chan *nodesChange
func (*Conn) RemoveNode ¶
Click to show internal directories.
Click to hide internal directories.