pb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

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

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

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

type Filter

type Filter struct {
}

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

type Hello

type Hello struct {
}

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

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

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

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

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) 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() *stratumn_indigonode_core_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

Jump to

Keyboard shortcuts

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