pb

package
v0.0.0-...-0a277a6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2015 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

cluster.proto

It has these top-level messages:

Negotiate
Header
Heartbeat
Vote

Index

Constants

This section is empty.

Variables

View Source
var Type_name = map[int32]string{
	1: "HEARTBEAT",
	2: "VOTE",
}
View Source
var Type_value = map[string]int32{
	"HEARTBEAT": 1,
	"VOTE":      2,
}

Functions

This section is empty.

Types

type Header struct {
	Type             *Type  `protobuf:"varint,1,opt,name=type,enum=pb.Type" json:"type,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Header) GetType

func (m *Header) GetType() Type

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

type Heartbeat

type Heartbeat struct {
	ViewId           *int64 `protobuf:"varint,1,opt,name=viewId" json:"viewId,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Heartbeat) GetViewId

func (m *Heartbeat) GetViewId() int64

func (*Heartbeat) ProtoMessage

func (*Heartbeat) ProtoMessage()

func (*Heartbeat) Reset

func (m *Heartbeat) Reset()

func (*Heartbeat) String

func (m *Heartbeat) String() string

type Negotiate

type Negotiate struct {
	Magic            *string  `protobuf:"bytes,1,req,name=magic" json:"magic,omitempty"`
	Version          *int32   `protobuf:"varint,2,req,name=version" json:"version,omitempty"`
	Options          []string `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*Negotiate) GetMagic

func (m *Negotiate) GetMagic() string

func (*Negotiate) GetOptions

func (m *Negotiate) GetOptions() []string

func (*Negotiate) GetVersion

func (m *Negotiate) GetVersion() int32

func (*Negotiate) ProtoMessage

func (*Negotiate) ProtoMessage()

func (*Negotiate) Reset

func (m *Negotiate) Reset()

func (*Negotiate) String

func (m *Negotiate) String() string

type Type

type Type int32
const (
	Type_HEARTBEAT Type = 1
	Type_VOTE      Type = 2
)

func (Type) Enum

func (x Type) Enum() *Type

func (Type) String

func (x Type) String() string

func (*Type) UnmarshalJSON

func (x *Type) UnmarshalJSON(data []byte) error

type Vote

type Vote struct {
	ViewId           *int64  `protobuf:"varint,1,opt,name=viewId" json:"viewId,omitempty"`
	PeerId           *string `protobuf:"bytes,2,opt,name=peerId" json:"peerId,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Vote) GetPeerId

func (m *Vote) GetPeerId() string

func (*Vote) GetViewId

func (m *Vote) GetViewId() int64

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) String

func (m *Vote) String() string

Jump to

Keyboard shortcuts

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