Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase() *Database
func StartService ¶
type Node ¶
type Node struct { ID common.Address //public key actually IP net.IP UDPPort, TCPPort int // contains filtered or unexported fields }
Node the node that contains its public key and network address
func NewNodeFromString ¶
func NewNodeWithAddr ¶
NewNodeWithAddr new node with id and network address
func (*Node) GetUDPAddr ¶
Click to show internal directories.
Click to hide internal directories.