clusterpb

package
v0.0.0-...-01d7cdc Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package clusterpb is a generated protocol buffer package.

It is generated from these files:

cluster/clusterpb/clusterpb.proto

It has these top-level messages:

MemberStatus

Index

Constants

View Source
const (
	// StoppedMemberStatus is node status before start or after stop.
	StoppedMemberStatus = "Stopped"
	// FollowerMemberStatus is follower in Raft.
	FollowerMemberStatus = "Follower"
	// LeaderMemberStatus is leader in Raft.
	LeaderMemberStatus = "Leader"
)

Variables

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

Functions

This section is empty.

Types

type MemberStatus

type MemberStatus struct {
	Name      string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	ID        string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"`
	Endpoint  string `protobuf:"bytes,3,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"`
	IsLeader  bool   `protobuf:"varint,4,opt,name=IsLeader,proto3" json:"IsLeader,omitempty"`
	State     string `protobuf:"bytes,5,opt,name=State,proto3" json:"State,omitempty"`
	StateTxt  string `protobuf:"bytes,6,opt,name=StateTxt,proto3" json:"StateTxt,omitempty"`
	DBSize    uint64 `protobuf:"varint,7,opt,name=DBSize,proto3" json:"DBSize,omitempty"`
	DBSizeTxt string `protobuf:"bytes,8,opt,name=DBSizeTxt,proto3" json:"DBSizeTxt,omitempty"`
	Hash      uint32 `protobuf:"varint,9,opt,name=Hash,proto3" json:"Hash,omitempty"`
}

MemberStatus defines node status information. Keep the json tag to make it parsable by Typescript.

func (*MemberStatus) Descriptor

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

func (*MemberStatus) Marshal

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

func (*MemberStatus) MarshalTo

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

func (*MemberStatus) ProtoMessage

func (*MemberStatus) ProtoMessage()

func (*MemberStatus) Reset

func (m *MemberStatus) Reset()

func (*MemberStatus) Size

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

func (*MemberStatus) String

func (m *MemberStatus) String() string

func (*MemberStatus) Unmarshal

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

Jump to

Keyboard shortcuts

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