Documentation
¶
Index ¶
- type Node
- type Store
- func (d *Store) Add(ip string, challenge []byte)
- func (d *Store) BlackList(ip string)
- func (d *Store) DumpNodes(srcPeerID string, _ message.Message) ([]bytes.Buffer, error)
- func (d *Store) Get(ip string) Node
- func (d *Store) IsBlackListed(ip string) bool
- func (d *Store) SetInactive(ip string)
- func (d *Store) SetPort(ip, port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Challenge []byte // contains filtered or unexported fields }
Node defines the status of a Dusk node.
type Store ¶
Store contains a map to pointers to node elements, where their ip is used as key.
func (*Store) DumpNodes ¶
DumpNodes returns a comma separated string of non-blacklisted, active IPs of dusk nodes currently stored.
func (*Store) IsBlackListed ¶
IsBlackListed checks if a node is present in the blacklist.
func (*Store) SetInactive ¶
SetInactive will set a node's status to down. Should be called after definitive disconnect.
Click to show internal directories.
Click to hide internal directories.