Documentation ¶ Index ¶ type Connector func New(listenAddress string, finder Finder, onNodeHandler func(node *vnode.Node) bool, ...) *Connector func (c *Connector) ConnectNode(node *vnode.Node) (err error) func (c *Connector) Start() (err error) type Finder Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Connector ¶ type Connector struct { // contains filtered or unexported fields } func New ¶ func New(listenAddress string, finder Finder, onNodeHandler func(node *vnode.Node) bool, onConnectionHandler func(c *net.TCPConn, inbound bool)) *Connector func (*Connector) ConnectNode ¶ func (c *Connector) ConnectNode(node *vnode.Node) (err error) func (*Connector) Start ¶ func (c *Connector) Start() (err error) type Finder ¶ type Finder interface { Nodes() []*vnode.Node } Source Files ¶ View all Source files connector.go Click to show internal directories. Click to hide internal directories.