model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_Compogo_cluster_model_election_proto protoreflect.FileDescriptor
View Source
var File_github_com_Compogo_cluster_model_replica_proto protoreflect.FileDescriptor
View Source
var File_github_com_Compogo_cluster_model_sync_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Age

type Age struct {
	Term uint64 `protobuf:"varint,1,opt,name=Term,proto3" json:"Term,omitempty"`
	// contains filtered or unexported fields
}

func (*Age) Descriptor deprecated

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

Deprecated: Use Age.ProtoReflect.Descriptor instead.

func (*Age) GetTerm

func (x *Age) GetTerm() uint64

func (*Age) ProtoMessage

func (*Age) ProtoMessage()

func (*Age) ProtoReflect

func (x *Age) ProtoReflect() protoreflect.Message

func (*Age) Reset

func (x *Age) Reset()

func (*Age) String

func (x *Age) String() string

type Bulletin

type Bulletin struct {
	Term      uint64 `protobuf:"varint,1,opt,name=Term,proto3" json:"Term,omitempty"`
	ReplicaId string `protobuf:"bytes,2,opt,name=ReplicaId,proto3" json:"ReplicaId,omitempty"`
	// contains filtered or unexported fields
}

func (*Bulletin) Descriptor deprecated

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

Deprecated: Use Bulletin.ProtoReflect.Descriptor instead.

func (*Bulletin) GetReplicaId

func (x *Bulletin) GetReplicaId() string

func (*Bulletin) GetTerm

func (x *Bulletin) GetTerm() uint64

func (*Bulletin) ProtoMessage

func (*Bulletin) ProtoMessage()

func (*Bulletin) ProtoReflect

func (x *Bulletin) ProtoReflect() protoreflect.Message

func (*Bulletin) Reset

func (x *Bulletin) Reset()

func (*Bulletin) String

func (x *Bulletin) String() string

type Meta

type Meta struct {
	Id             string                 `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name           string                 `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Host           string                 `protobuf:"bytes,3,opt,name=Host,proto3" json:"Host,omitempty"`
	TimeStart      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=TimeStart,proto3" json:"TimeStart,omitempty"`
	AvailableRoles []string               `protobuf:"bytes,5,rep,name=AvailableRoles,proto3" json:"AvailableRoles,omitempty"`
	Roles          []string               `protobuf:"bytes,6,rep,name=Roles,proto3" json:"Roles,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetAvailableRoles

func (x *Meta) GetAvailableRoles() []string

func (*Meta) GetHost

func (x *Meta) GetHost() string

func (*Meta) GetId

func (x *Meta) GetId() string

func (*Meta) GetName

func (x *Meta) GetName() string

func (*Meta) GetRoles

func (x *Meta) GetRoles() []string

func (*Meta) GetTimeStart

func (x *Meta) GetTimeStart() *timestamppb.Timestamp

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

func (x *Meta) ProtoReflect() protoreflect.Message

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type State

type State struct {
	Score     float32              `protobuf:"fixed32,1,opt,name=Score,proto3" json:"Score,omitempty"`
	Resources []*resource.Resource `protobuf:"bytes,2,rep,name=Resources,proto3" json:"Resources,omitempty"`
	Roles     []string             `protobuf:"bytes,3,rep,name=Roles,proto3" json:"Roles,omitempty"`
	// contains filtered or unexported fields
}

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetResources

func (x *State) GetResources() []*resource.Resource

func (*State) GetRoles

func (x *State) GetRoles() []string

func (*State) GetScore

func (x *State) GetScore() float32

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

type Stream

type Stream struct {

	// Types that are valid to be assigned to Payload:
	//
	//	*Stream_Meta
	//	*Stream_State
	Payload isStream_Payload `protobuf_oneof:"Payload"`
	// contains filtered or unexported fields
}

func (*Stream) Descriptor deprecated

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

Deprecated: Use Stream.ProtoReflect.Descriptor instead.

func (*Stream) GetMeta

func (x *Stream) GetMeta() *Meta

func (*Stream) GetPayload

func (x *Stream) GetPayload() isStream_Payload

func (*Stream) GetState

func (x *Stream) GetState() *State

func (*Stream) ProtoMessage

func (*Stream) ProtoMessage()

func (*Stream) ProtoReflect

func (x *Stream) ProtoReflect() protoreflect.Message

func (*Stream) Reset

func (x *Stream) Reset()

func (*Stream) String

func (x *Stream) String() string

type Stream_Meta

type Stream_Meta struct {
	Meta *Meta `protobuf:"bytes,1,opt,name=Meta,proto3,oneof"`
}

type Stream_State

type Stream_State struct {
	State *State `protobuf:"bytes,2,opt,name=State,proto3,oneof"`
}

type Sync

type Sync struct {
	Hosts []string `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*Sync) Descriptor deprecated

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

Deprecated: Use Sync.ProtoReflect.Descriptor instead.

func (*Sync) GetHosts

func (x *Sync) GetHosts() []string

func (*Sync) ProtoMessage

func (*Sync) ProtoMessage()

func (*Sync) ProtoReflect

func (x *Sync) ProtoReflect() protoreflect.Message

func (*Sync) Reset

func (x *Sync) Reset()

func (*Sync) String

func (x *Sync) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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