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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRaft = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRaft   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) Marshal

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

func (*Empty) MarshalTo

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

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

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

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

func (*Empty) XXX_DiscardUnknown added in v0.2.0

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal added in v0.2.0

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

func (*Empty) XXX_Merge added in v0.2.0

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

func (*Empty) XXX_Size added in v0.2.0

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal added in v0.2.0

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

type Entry

type Entry struct {
	Index                uint64   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Entry) Descriptor

func (*Entry) Descriptor() ([]byte, []int)

func (*Entry) GetData

func (m *Entry) GetData() []byte

func (*Entry) GetIndex

func (m *Entry) GetIndex() uint64

func (*Entry) Marshal

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

func (*Entry) MarshalTo

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

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) Size

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

func (*Entry) String

func (m *Entry) String() string

func (*Entry) Unmarshal

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

func (*Entry) XXX_DiscardUnknown added in v0.2.0

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal added in v0.2.0

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

func (*Entry) XXX_Merge added in v0.2.0

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

func (*Entry) XXX_Size added in v0.2.0

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal added in v0.2.0

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

type Internode

type Internode struct {
	PeerId               *PeerID  `protobuf:"bytes,1,opt,name=peer_id,json=peerId" json:"peer_id,omitempty"`
	Message              []byte   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Internode) Descriptor

func (*Internode) Descriptor() ([]byte, []int)

func (*Internode) GetMessage

func (m *Internode) GetMessage() []byte

func (*Internode) GetPeerId

func (m *Internode) GetPeerId() *PeerID

func (*Internode) Marshal

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

func (*Internode) MarshalTo

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

func (*Internode) ProtoMessage

func (*Internode) ProtoMessage()

func (*Internode) Reset

func (m *Internode) Reset()

func (*Internode) Size

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

func (*Internode) String

func (m *Internode) String() string

func (*Internode) Unmarshal

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

func (*Internode) XXX_DiscardUnknown added in v0.2.0

func (m *Internode) XXX_DiscardUnknown()

func (*Internode) XXX_Marshal added in v0.2.0

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

func (*Internode) XXX_Merge added in v0.2.0

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

func (*Internode) XXX_Size added in v0.2.0

func (m *Internode) XXX_Size() int

func (*Internode) XXX_Unmarshal added in v0.2.0

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

type Peer

type Peer struct {
	Id                   uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Address              []byte   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) GetAddress

func (m *Peer) GetAddress() []byte

func (*Peer) GetId

func (m *Peer) GetId() uint64

func (*Peer) Marshal

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

func (*Peer) MarshalTo

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

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) Size

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

func (*Peer) String

func (m *Peer) String() string

func (*Peer) Unmarshal

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

func (*Peer) XXX_DiscardUnknown added in v0.2.0

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal added in v0.2.0

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

func (*Peer) XXX_Merge added in v0.2.0

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

func (*Peer) XXX_Size added in v0.2.0

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal added in v0.2.0

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

type PeerID

type PeerID struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PeerID) Descriptor

func (*PeerID) Descriptor() ([]byte, []int)

func (*PeerID) GetAddress

func (m *PeerID) GetAddress() []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 Peers

type Peers struct {
	Peers                []*Peer  `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Peers) Descriptor

func (*Peers) Descriptor() ([]byte, []int)

func (*Peers) GetPeers

func (m *Peers) GetPeers() []*Peer

func (*Peers) Marshal

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

func (*Peers) MarshalTo

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

func (*Peers) ProtoMessage

func (*Peers) ProtoMessage()

func (*Peers) Reset

func (m *Peers) Reset()

func (*Peers) Size

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

func (*Peers) String

func (m *Peers) String() string

func (*Peers) Unmarshal

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

func (*Peers) XXX_DiscardUnknown added in v0.2.0

func (m *Peers) XXX_DiscardUnknown()

func (*Peers) XXX_Marshal added in v0.2.0

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

func (*Peers) XXX_Merge added in v0.2.0

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

func (*Peers) XXX_Size added in v0.2.0

func (m *Peers) XXX_Size() int

func (*Peers) XXX_Unmarshal added in v0.2.0

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

type Proposal

type Proposal struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Proposal) Descriptor

func (*Proposal) Descriptor() ([]byte, []int)

func (*Proposal) GetData

func (m *Proposal) GetData() []byte

func (*Proposal) Marshal

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

func (*Proposal) MarshalTo

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

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

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

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

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

func (*Proposal) XXX_DiscardUnknown added in v0.2.0

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal added in v0.2.0

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

func (*Proposal) XXX_Merge added in v0.2.0

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

func (*Proposal) XXX_Size added in v0.2.0

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal added in v0.2.0

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

type StatusInfo

type StatusInfo struct {
	Running              bool     `protobuf:"varint,1,opt,name=running,proto3" json:"running,omitempty"`
	Id                   uint64   `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusInfo) Descriptor

func (*StatusInfo) Descriptor() ([]byte, []int)

func (*StatusInfo) GetId

func (m *StatusInfo) GetId() uint64

func (*StatusInfo) GetRunning

func (m *StatusInfo) GetRunning() bool

func (*StatusInfo) Marshal

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

func (*StatusInfo) MarshalTo

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

func (*StatusInfo) ProtoMessage

func (*StatusInfo) ProtoMessage()

func (*StatusInfo) Reset

func (m *StatusInfo) Reset()

func (*StatusInfo) Size

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

func (*StatusInfo) String

func (m *StatusInfo) String() string

func (*StatusInfo) Unmarshal

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

func (*StatusInfo) XXX_DiscardUnknown added in v0.2.0

func (m *StatusInfo) XXX_DiscardUnknown()

func (*StatusInfo) XXX_Marshal added in v0.2.0

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

func (*StatusInfo) XXX_Merge added in v0.2.0

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

func (*StatusInfo) XXX_Size added in v0.2.0

func (m *StatusInfo) XXX_Size() int

func (*StatusInfo) XXX_Unmarshal added in v0.2.0

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

Jump to

Keyboard shortcuts

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