Documentation ¶
Index ¶
- Variables
- type Ack
- func (*Ack) Descriptor() ([]byte, []int)
- func (m *Ack) GetError() string
- func (m *Ack) Marshal() (dAtA []byte, err error)
- func (m *Ack) MarshalTo(dAtA []byte) (int, error)
- func (*Ack) ProtoMessage()
- func (m *Ack) Reset()
- func (m *Ack) Size() (n int)
- func (m *Ack) String() string
- func (m *Ack) Unmarshal(dAtA []byte) error
- func (m *Ack) XXX_DiscardUnknown()
- func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ack) XXX_Merge(src proto.Message)
- func (m *Ack) XXX_Size() int
- func (m *Ack) XXX_Unmarshal(b []byte) error
- type CompleteReq
- func (*CompleteReq) Descriptor() ([]byte, []int)
- func (m *CompleteReq) Marshal() (dAtA []byte, err error)
- func (m *CompleteReq) MarshalTo(dAtA []byte) (int, error)
- func (*CompleteReq) ProtoMessage()
- func (m *CompleteReq) Reset()
- func (m *CompleteReq) Size() (n int)
- func (m *CompleteReq) String() string
- func (m *CompleteReq) Unmarshal(dAtA []byte) error
- func (m *CompleteReq) XXX_DiscardUnknown()
- func (m *CompleteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CompleteReq) XXX_Merge(src proto.Message)
- func (m *CompleteReq) XXX_Size() int
- func (m *CompleteReq) XXX_Unmarshal(b []byte) error
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)
- func (m *Filter) Marshal() (dAtA []byte, err error)
- func (m *Filter) MarshalTo(dAtA []byte) (int, error)
- func (*Filter) ProtoMessage()
- func (m *Filter) Reset()
- func (m *Filter) Size() (n int)
- func (m *Filter) String() string
- func (m *Filter) Unmarshal(dAtA []byte) error
- func (m *Filter) XXX_DiscardUnknown()
- func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Filter) XXX_Merge(src proto.Message)
- func (m *Filter) XXX_Size() int
- func (m *Filter) XXX_Unmarshal(b []byte) error
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)
- func (m *Hello) Marshal() (dAtA []byte, err error)
- func (m *Hello) MarshalTo(dAtA []byte) (int, error)
- func (*Hello) ProtoMessage()
- func (m *Hello) Reset()
- func (m *Hello) Size() (n int)
- func (m *Hello) String() string
- func (m *Hello) Unmarshal(dAtA []byte) error
- func (m *Hello) XXX_DiscardUnknown()
- func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Hello) XXX_Merge(src proto.Message)
- func (m *Hello) XXX_Size() int
- func (m *Hello) XXX_Unmarshal(b []byte) error
- type NodeIdentity
- func (*NodeIdentity) Descriptor() ([]byte, []int)
- func (m *NodeIdentity) GetIdentityProof() []byte
- func (m *NodeIdentity) GetPeerAddr() []byte
- func (m *NodeIdentity) GetPeerId() []byte
- func (m *NodeIdentity) Marshal() (dAtA []byte, err error)
- func (m *NodeIdentity) MarshalTo(dAtA []byte) (int, error)
- func (*NodeIdentity) ProtoMessage()
- func (m *NodeIdentity) Reset()
- func (m *NodeIdentity) Size() (n int)
- func (m *NodeIdentity) String() string
- func (m *NodeIdentity) Unmarshal(dAtA []byte) error
- func (m *NodeIdentity) XXX_DiscardUnknown()
- func (m *NodeIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NodeIdentity) XXX_Merge(src proto.Message)
- func (m *NodeIdentity) XXX_Size() int
- func (m *NodeIdentity) XXX_Unmarshal(b []byte) error
- type PeerID
- func (*PeerID) Descriptor() ([]byte, []int)
- func (m *PeerID) GetPeerId() []byte
- func (m *PeerID) Marshal() (dAtA []byte, err error)
- func (m *PeerID) MarshalTo(dAtA []byte) (int, error)
- func (*PeerID) ProtoMessage()
- func (m *PeerID) Reset()
- func (m *PeerID) Size() (n int)
- func (m *PeerID) String() string
- func (m *PeerID) Unmarshal(dAtA []byte) error
- func (m *PeerID) XXX_DiscardUnknown()
- func (m *PeerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeerID) XXX_Merge(src proto.Message)
- func (m *PeerID) XXX_Size() int
- func (m *PeerID) XXX_Unmarshal(b []byte) error
- type UpdateProposal
- func (*UpdateProposal) Descriptor() ([]byte, []int)
- func (m *UpdateProposal) GetChallenge() []byte
- func (m *UpdateProposal) GetNodeDetails() *NodeIdentity
- func (m *UpdateProposal) GetUpdateType() UpdateType
- func (m *UpdateProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateProposal) MarshalTo(dAtA []byte) (int, error)
- func (*UpdateProposal) ProtoMessage()
- func (m *UpdateProposal) Reset()
- func (m *UpdateProposal) Size() (n int)
- func (m *UpdateProposal) String() string
- func (m *UpdateProposal) Unmarshal(dAtA []byte) error
- func (m *UpdateProposal) XXX_DiscardUnknown()
- func (m *UpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateProposal) XXX_Merge(src proto.Message)
- func (m *UpdateProposal) XXX_Size() int
- func (m *UpdateProposal) XXX_Unmarshal(b []byte) error
- type UpdateType
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetChallenge() []byte
- func (m *Vote) GetPeerId() []byte
- func (m *Vote) GetSignature() *crypto.Signature
- func (m *Vote) GetUpdateType() UpdateType
- func (m *Vote) Marshal() (dAtA []byte, err error)
- func (m *Vote) MarshalTo(dAtA []byte) (int, error)
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) Size() (n int)
- func (m *Vote) String() string
- func (m *Vote) Unmarshal(dAtA []byte) error
- func (m *Vote) XXX_DiscardUnknown()
- func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Vote) XXX_Merge(src proto.Message)
- func (m *Vote) XXX_Size() int
- func (m *Vote) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBootstrap = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBootstrap = fmt.Errorf("proto: integer overflow") )
View Source
var UpdateType_name = map[int32]string{
0: "None",
1: "AddNode",
2: "RemoveNode",
}
View Source
var UpdateType_value = map[string]int32{
"None": 0,
"AddNode": 1,
"RemoveNode": 2,
}
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A message ack.
func (*Ack) Descriptor ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Ack) XXX_DiscardUnknown()
func (*Ack) XXX_Marshal ¶ added in v0.2.0
func (*Ack) XXX_Unmarshal ¶ added in v0.2.0
type CompleteReq ¶
type CompleteReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request to complete the bootstrap phase.
func (*CompleteReq) Descriptor ¶
func (*CompleteReq) Descriptor() ([]byte, []int)
func (*CompleteReq) Marshal ¶
func (m *CompleteReq) Marshal() (dAtA []byte, err error)
func (*CompleteReq) ProtoMessage ¶
func (*CompleteReq) ProtoMessage()
func (*CompleteReq) Reset ¶
func (m *CompleteReq) Reset()
func (*CompleteReq) Size ¶
func (m *CompleteReq) Size() (n int)
func (*CompleteReq) String ¶
func (m *CompleteReq) String() string
func (*CompleteReq) Unmarshal ¶
func (m *CompleteReq) Unmarshal(dAtA []byte) error
func (*CompleteReq) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *CompleteReq) XXX_DiscardUnknown()
func (*CompleteReq) XXX_Marshal ¶ added in v0.2.0
func (m *CompleteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompleteReq) XXX_Merge ¶ added in v0.2.0
func (dst *CompleteReq) XXX_Merge(src proto.Message)
func (*CompleteReq) XXX_Size ¶ added in v0.2.0
func (m *CompleteReq) XXX_Size() int
func (*CompleteReq) XXX_Unmarshal ¶ added in v0.2.0
func (m *CompleteReq) XXX_Unmarshal(b []byte) error
type Filter ¶
type Filter struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A results filter.
func (*Filter) Descriptor ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Filter) XXX_DiscardUnknown()
func (*Filter) XXX_Marshal ¶ added in v0.2.0
func (*Filter) XXX_Unmarshal ¶ added in v0.2.0
type Hello ¶
type Hello struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A simple Hello handshake message.
func (*Hello) Descriptor ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Hello) XXX_DiscardUnknown()
func (*Hello) XXX_Marshal ¶ added in v0.2.0
func (*Hello) XXX_Unmarshal ¶ added in v0.2.0
type NodeIdentity ¶
type NodeIdentity struct { PeerId []byte `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` PeerAddr []byte `protobuf:"bytes,2,opt,name=peer_addr,json=peerAddr,proto3" json:"peer_addr,omitempty"` IdentityProof []byte `protobuf:"bytes,3,opt,name=identity_proof,json=identityProof,proto3" json:"identity_proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A message containing a proof of a node's identity.
func (*NodeIdentity) Descriptor ¶
func (*NodeIdentity) Descriptor() ([]byte, []int)
func (*NodeIdentity) GetIdentityProof ¶
func (m *NodeIdentity) GetIdentityProof() []byte
func (*NodeIdentity) GetPeerAddr ¶
func (m *NodeIdentity) GetPeerAddr() []byte
func (*NodeIdentity) GetPeerId ¶
func (m *NodeIdentity) GetPeerId() []byte
func (*NodeIdentity) Marshal ¶
func (m *NodeIdentity) Marshal() (dAtA []byte, err error)
func (*NodeIdentity) ProtoMessage ¶
func (*NodeIdentity) ProtoMessage()
func (*NodeIdentity) Reset ¶
func (m *NodeIdentity) Reset()
func (*NodeIdentity) Size ¶
func (m *NodeIdentity) Size() (n int)
func (*NodeIdentity) String ¶
func (m *NodeIdentity) String() string
func (*NodeIdentity) Unmarshal ¶
func (m *NodeIdentity) Unmarshal(dAtA []byte) error
func (*NodeIdentity) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *NodeIdentity) XXX_DiscardUnknown()
func (*NodeIdentity) XXX_Marshal ¶ added in v0.2.0
func (m *NodeIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeIdentity) XXX_Merge ¶ added in v0.2.0
func (dst *NodeIdentity) XXX_Merge(src proto.Message)
func (*NodeIdentity) XXX_Size ¶ added in v0.2.0
func (m *NodeIdentity) XXX_Size() int
func (*NodeIdentity) XXX_Unmarshal ¶ added in v0.2.0
func (m *NodeIdentity) XXX_Unmarshal(b []byte) error
type PeerID ¶
type PeerID struct { PeerId []byte `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A base58-encoded PeerId.
func (*PeerID) Descriptor ¶
func (*PeerID) ProtoMessage ¶
func (*PeerID) ProtoMessage()
func (*PeerID) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PeerID) XXX_DiscardUnknown()
func (*PeerID) XXX_Marshal ¶ added in v0.2.0
func (*PeerID) XXX_Unmarshal ¶ added in v0.2.0
type UpdateProposal ¶
type UpdateProposal struct { UpdateType UpdateType `` /* 141-byte string literal not displayed */ NodeDetails *NodeIdentity `protobuf:"bytes,2,opt,name=node_details,json=nodeDetails" json:"node_details,omitempty"` Challenge []byte `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Proposal to update the network.
func (*UpdateProposal) Descriptor ¶
func (*UpdateProposal) Descriptor() ([]byte, []int)
func (*UpdateProposal) GetChallenge ¶
func (m *UpdateProposal) GetChallenge() []byte
func (*UpdateProposal) GetNodeDetails ¶
func (m *UpdateProposal) GetNodeDetails() *NodeIdentity
func (*UpdateProposal) GetUpdateType ¶
func (m *UpdateProposal) GetUpdateType() UpdateType
func (*UpdateProposal) Marshal ¶
func (m *UpdateProposal) Marshal() (dAtA []byte, err error)
func (*UpdateProposal) ProtoMessage ¶
func (*UpdateProposal) ProtoMessage()
func (*UpdateProposal) Reset ¶
func (m *UpdateProposal) Reset()
func (*UpdateProposal) Size ¶
func (m *UpdateProposal) Size() (n int)
func (*UpdateProposal) String ¶
func (m *UpdateProposal) String() string
func (*UpdateProposal) Unmarshal ¶
func (m *UpdateProposal) Unmarshal(dAtA []byte) error
func (*UpdateProposal) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *UpdateProposal) XXX_DiscardUnknown()
func (*UpdateProposal) XXX_Marshal ¶ added in v0.2.0
func (m *UpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateProposal) XXX_Merge ¶ added in v0.2.0
func (dst *UpdateProposal) XXX_Merge(src proto.Message)
func (*UpdateProposal) XXX_Size ¶ added in v0.2.0
func (m *UpdateProposal) XXX_Size() int
func (*UpdateProposal) XXX_Unmarshal ¶ added in v0.2.0
func (m *UpdateProposal) XXX_Unmarshal(b []byte) error
type UpdateType ¶
type UpdateType int32
Type of network updates that can be proposed.
const ( UpdateType_None UpdateType = 0 UpdateType_AddNode UpdateType = 1 UpdateType_RemoveNode UpdateType = 2 )
func (UpdateType) EnumDescriptor ¶
func (UpdateType) EnumDescriptor() ([]byte, []int)
func (UpdateType) String ¶
func (x UpdateType) String() string
type Vote ¶
type Vote struct { UpdateType UpdateType `` /* 141-byte string literal not displayed */ PeerId []byte `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Challenge []byte `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` Signature *crypto.Signature `protobuf:"bytes,4,opt,name=signature" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Vote) Descriptor ¶
func (*Vote) GetChallenge ¶
func (*Vote) GetSignature ¶
func (*Vote) GetUpdateType ¶
func (m *Vote) GetUpdateType() UpdateType
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Marshal ¶ added in v0.2.0
func (*Vote) XXX_Unmarshal ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.