Documentation ¶
Overview ¶
Package node provides several Node types.
Index ¶
- Variables
- type BaseV0
- func (bn BaseV0) Address() base.Address
- func (bn BaseV0) IsValid([]byte) error
- func (bn BaseV0) MarshalBSON() ([]byte, error)
- func (bn BaseV0) MarshalJSON() ([]byte, error)
- func (bn BaseV0) Publickey() key.Publickey
- func (bn BaseV0) String() string
- func (bn *BaseV0) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (bn *BaseV0) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type BaseV0PackerBSON
- type BaseV0PackerJSON
- type BaseV0UnpackerBSON
- type BaseV0UnpackerJSON
- type Local
- type NodeError
- type Remote
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BaseV0Type = hint.Type("base-node") BaseV0Hint = hint.NewHint(BaseV0Type, "v0.0.1") BaseV0Hinter = BaseV0{BaseHinter: hint.NewBaseHinter(BaseV0Hint)} )
Functions ¶
This section is empty.
Types ¶
type BaseV0 ¶
type BaseV0 struct { hint.BaseHinter // contains filtered or unexported fields }
func (BaseV0) MarshalBSON ¶
func (BaseV0) MarshalJSON ¶
type BaseV0PackerBSON ¶
type BaseV0PackerJSON ¶
type BaseV0UnpackerBSON ¶
type BaseV0UnpackerBSON struct { AD base.AddressDecoder `bson:"address"` PK key.PublickeyDecoder `bson:"publickey"` }
type BaseV0UnpackerJSON ¶
type BaseV0UnpackerJSON struct { AD base.AddressDecoder `json:"address"` PK key.PublickeyDecoder `json:"publickey"` }
type Local ¶
type Local struct { BaseV0 // contains filtered or unexported fields }
func (Local) Privatekey ¶
func (ln Local) Privatekey() key.Privatekey
Click to show internal directories.
Click to hide internal directories.