Documentation ¶
Index ¶
- type Node
- func (n *Node) Bye() bool
- func (n *Node) Equals(nn *Node) bool
- func (n *Node) GetherNodes() []*Node
- func (n *Node) IsAllowed() bool
- func (n *Node) Join() (*Node, error)
- func (n *Node) Ping() (string, error)
- func (n *Node) Talk(message string, fn func(string) error) ([]string, error)
- func (n *Node) Toxstring() string
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
Nodestr string
}
Node represents node info.
func (*Node) GetherNodes ¶ added in v0.0.11
GetherNodes gethers nodes from n.
func (*Node) Join ¶ added in v0.1.0
Join requests n to Join me and return true and other node name if success.
type Slice ¶
type Slice []*Node
Slice is slice of node.
func (Slice) GetNodestrSlice ¶ added in v0.1.0
GetNodestrSlice returns slice of Nodestr of nodes.
Click to show internal directories.
Click to hide internal directories.