Documentation ¶
Index ¶
Constants ¶
View Source
const MaxCapabilities = 32
MaxCapabilities is the maximum number of capabilities per payload.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities []Capability
Capabilities is a list of Capability.
func (*Capabilities) DecodeBinary ¶
func (cs *Capabilities) DecodeBinary(br *io.BinReader)
DecodeBinary implements io.Serializable.
func (*Capabilities) EncodeBinary ¶
func (cs *Capabilities) EncodeBinary(br *io.BinWriter)
EncodeBinary implements io.Serializable.
type Capability ¶
type Capability struct { Type Type Data io.Serializable }
Capability describes a network service available for the node.
func (*Capability) DecodeBinary ¶
func (c *Capability) DecodeBinary(br *io.BinReader)
DecodeBinary implements io.Serializable.
func (*Capability) EncodeBinary ¶
func (c *Capability) EncodeBinary(bw *io.BinWriter)
EncodeBinary implements io.Serializable.
type Node ¶
type Node struct {
StartHeight uint32
}
Node represents full node capability with a start height.
func (*Node) DecodeBinary ¶
DecodeBinary implements io.Serializable.
func (*Node) EncodeBinary ¶
EncodeBinary implements io.Serializable.
type Server ¶
type Server struct { // Port is the port this server is listening on. Port uint16 }
Server represents TCP or WS server capability with a port.
func (*Server) DecodeBinary ¶
DecodeBinary implements io.Serializable.
func (*Server) EncodeBinary ¶
EncodeBinary implements io.Serializable.
Click to show internal directories.
Click to hide internal directories.