Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
github.com/stratumn/go-indigonode/core/app/bootstrap/pb/bootstrap.proto
It has these top-level messages:
Hello Ack CompleteReq Filter PeerID NodeIdentity UpdateProposal Vote
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
- 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
- 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
- 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
- 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
- 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
- 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
- type UpdateType
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetChallenge() []byte
- func (m *Vote) GetPeerId() []byte
- func (m *Vote) GetSignature() *stratumn_indigonode_core_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
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"`
}
A message ack.
func (*Ack) Descriptor ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
type CompleteReq ¶
type CompleteReq struct { }
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
type Filter ¶
type Filter struct { }
A results filter.
func (*Filter) Descriptor ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
type Hello ¶
type Hello struct { }
A simple Hello handshake message.
func (*Hello) Descriptor ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
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"` }
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
type PeerID ¶
type PeerID struct {
PeerId []byte `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
}
A base58-encoded PeerId.
func (*PeerID) Descriptor ¶
func (*PeerID) ProtoMessage ¶
func (*PeerID) ProtoMessage()
type UpdateProposal ¶
type UpdateProposal struct { UpdateType UpdateType `` /* 147-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"` }
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
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 `` /* 147-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 *stratumn_indigonode_core_crypto.Signature `protobuf:"bytes,4,opt,name=signature" json:"signature,omitempty"` }
func (*Vote) Descriptor ¶
func (*Vote) GetChallenge ¶
func (*Vote) GetSignature ¶
func (m *Vote) GetSignature() *stratumn_indigonode_core_crypto.Signature
func (*Vote) GetUpdateType ¶
func (m *Vote) GetUpdateType() UpdateType
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.