pb

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Ack) GetError

func (m *Ack) GetError() string

func (*Ack) Marshal

func (m *Ack) Marshal() (dAtA []byte, err error)

func (*Ack) MarshalTo

func (m *Ack) MarshalTo(dAtA []byte) (int, error)

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) Size

func (m *Ack) Size() (n int)

func (*Ack) String

func (m *Ack) String() string

func (*Ack) Unmarshal

func (m *Ack) Unmarshal(dAtA []byte) error

func (*Ack) XXX_DiscardUnknown added in v0.2.0

func (m *Ack) XXX_DiscardUnknown()

func (*Ack) XXX_Marshal added in v0.2.0

func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ack) XXX_Merge added in v0.2.0

func (dst *Ack) XXX_Merge(src proto.Message)

func (*Ack) XXX_Size added in v0.2.0

func (m *Ack) XXX_Size() int

func (*Ack) XXX_Unmarshal added in v0.2.0

func (m *Ack) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *CompleteReq) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Filter) Marshal

func (m *Filter) Marshal() (dAtA []byte, err error)

func (*Filter) MarshalTo

func (m *Filter) MarshalTo(dAtA []byte) (int, error)

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) Reset

func (m *Filter) Reset()

func (*Filter) Size

func (m *Filter) Size() (n int)

func (*Filter) String

func (m *Filter) String() string

func (*Filter) Unmarshal

func (m *Filter) Unmarshal(dAtA []byte) error

func (*Filter) XXX_DiscardUnknown added in v0.2.0

func (m *Filter) XXX_DiscardUnknown()

func (*Filter) XXX_Marshal added in v0.2.0

func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Filter) XXX_Merge added in v0.2.0

func (dst *Filter) XXX_Merge(src proto.Message)

func (*Filter) XXX_Size added in v0.2.0

func (m *Filter) XXX_Size() int

func (*Filter) XXX_Unmarshal added in v0.2.0

func (m *Filter) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Hello) Marshal

func (m *Hello) Marshal() (dAtA []byte, err error)

func (*Hello) MarshalTo

func (m *Hello) MarshalTo(dAtA []byte) (int, error)

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) Reset

func (m *Hello) Reset()

func (*Hello) Size

func (m *Hello) Size() (n int)

func (*Hello) String

func (m *Hello) String() string

func (*Hello) Unmarshal

func (m *Hello) Unmarshal(dAtA []byte) error

func (*Hello) XXX_DiscardUnknown added in v0.2.0

func (m *Hello) XXX_DiscardUnknown()

func (*Hello) XXX_Marshal added in v0.2.0

func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hello) XXX_Merge added in v0.2.0

func (dst *Hello) XXX_Merge(src proto.Message)

func (*Hello) XXX_Size added in v0.2.0

func (m *Hello) XXX_Size() int

func (*Hello) XXX_Unmarshal added in v0.2.0

func (m *Hello) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *NodeIdentity) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*PeerID) GetPeerId

func (m *PeerID) GetPeerId() []byte

func (*PeerID) Marshal

func (m *PeerID) Marshal() (dAtA []byte, err error)

func (*PeerID) MarshalTo

func (m *PeerID) MarshalTo(dAtA []byte) (int, error)

func (*PeerID) ProtoMessage

func (*PeerID) ProtoMessage()

func (*PeerID) Reset

func (m *PeerID) Reset()

func (*PeerID) Size

func (m *PeerID) Size() (n int)

func (*PeerID) String

func (m *PeerID) String() string

func (*PeerID) Unmarshal

func (m *PeerID) Unmarshal(dAtA []byte) error

func (*PeerID) XXX_DiscardUnknown added in v0.2.0

func (m *PeerID) XXX_DiscardUnknown()

func (*PeerID) XXX_Marshal added in v0.2.0

func (m *PeerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerID) XXX_Merge added in v0.2.0

func (dst *PeerID) XXX_Merge(src proto.Message)

func (*PeerID) XXX_Size added in v0.2.0

func (m *PeerID) XXX_Size() int

func (*PeerID) XXX_Unmarshal added in v0.2.0

func (m *PeerID) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *UpdateProposal) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Vote) GetChallenge

func (m *Vote) GetChallenge() []byte

func (*Vote) GetPeerId

func (m *Vote) GetPeerId() []byte

func (*Vote) GetSignature

func (m *Vote) GetSignature() *crypto.Signature

func (*Vote) GetUpdateType

func (m *Vote) GetUpdateType() UpdateType

func (*Vote) Marshal

func (m *Vote) Marshal() (dAtA []byte, err error)

func (*Vote) MarshalTo

func (m *Vote) MarshalTo(dAtA []byte) (int, error)

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

func (m *Vote) Size() (n int)

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

func (m *Vote) Unmarshal(dAtA []byte) error

func (*Vote) XXX_DiscardUnknown added in v0.2.0

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal added in v0.2.0

func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vote) XXX_Merge added in v0.2.0

func (dst *Vote) XXX_Merge(src proto.Message)

func (*Vote) XXX_Size added in v0.2.0

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal added in v0.2.0

func (m *Vote) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL