Documentation ¶
Index ¶
- Variables
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)deprecated
- func (x *Peer) GetAddress() string
- func (x *Peer) GetId() string
- func (x *Peer) GetMetadata() map[string]string
- func (x *Peer) GetPort() int32
- func (*Peer) ProtoMessage()
- func (x *Peer) ProtoReflect() protoreflect.Message
- func (x *Peer) Reset()
- func (x *Peer) String() string
- func (this *Peer) Validate() error
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetControllable() bool
- func (x *Service) GetDescription() string
- func (x *Service) GetMetadata() map[string]string
- func (x *Service) GetName() string
- func (x *Service) GetRunningPeers() []*Peer
- func (x *Service) GetStatus() ServiceStatus
- func (x *Service) GetTag() string
- func (x *Service) GetVersion() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (this *Service) Validate() error
- type ServiceCommand
- func (ServiceCommand) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceCommand) Enum() *ServiceCommand
- func (ServiceCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceCommand) Number() protoreflect.EnumNumber
- func (x ServiceCommand) String() string
- func (ServiceCommand) Type() protoreflect.EnumType
- type ServiceStatus
- func (ServiceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceStatus) Enum() *ServiceStatus
- func (ServiceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceStatus) Number() protoreflect.EnumNumber
- func (x ServiceStatus) String() string
- func (ServiceStatus) Type() protoreflect.EnumType
- type ServiceStatusEvent
- func (*ServiceStatusEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceStatusEvent) GetServiceName() string
- func (x *ServiceStatusEvent) GetSourceNode() string
- func (x *ServiceStatusEvent) GetStatus() ServiceStatus
- func (*ServiceStatusEvent) ProtoMessage()
- func (x *ServiceStatusEvent) ProtoReflect() protoreflect.Message
- func (x *ServiceStatusEvent) Reset()
- func (x *ServiceStatusEvent) String() string
- func (this *ServiceStatusEvent) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServiceStatus_name = map[int32]string{ 0: "ANY", 1: "STOPPED", 2: "STARTING", 3: "STOPPING", 4: "STARTED", } ServiceStatus_value = map[string]int32{ "ANY": 0, "STOPPED": 1, "STARTING": 2, "STOPPING": 3, "STARTED": 4, } )
Enum value maps for ServiceStatus.
View Source
var ( ServiceCommand_name = map[int32]string{ 0: "START", 1: "STOP", } ServiceCommand_value = map[string]int32{ "START": 0, "STOP": 1, } )
Enum value maps for ServiceCommand.
View Source
var File_cells_ctl_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"` Port int32 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Peer) Descriptor
deprecated
func (*Peer) GetAddress ¶
func (*Peer) GetMetadata ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) ProtoReflect ¶
func (x *Peer) ProtoReflect() protoreflect.Message
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` Tag string `protobuf:"bytes,4,opt,name=Tag,proto3" json:"Tag,omitempty"` Controllable bool `protobuf:"varint,5,opt,name=Controllable,proto3" json:"Controllable,omitempty"` Status ServiceStatus `protobuf:"varint,7,opt,name=Status,proto3,enum=ctl.ServiceStatus" json:"Status,omitempty"` RunningPeers []*Peer `protobuf:"bytes,6,rep,name=RunningPeers,proto3" json:"RunningPeers,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetControllable ¶
func (*Service) GetDescription ¶
func (*Service) GetMetadata ¶ added in v4.0.1
func (*Service) GetRunningPeers ¶
func (*Service) GetStatus ¶
func (x *Service) GetStatus() ServiceStatus
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type ServiceCommand ¶
type ServiceCommand int32
const ( ServiceCommand_START ServiceCommand = 0 ServiceCommand_STOP ServiceCommand = 1 )
func (ServiceCommand) Descriptor ¶
func (ServiceCommand) Descriptor() protoreflect.EnumDescriptor
func (ServiceCommand) Enum ¶
func (x ServiceCommand) Enum() *ServiceCommand
func (ServiceCommand) EnumDescriptor
deprecated
func (ServiceCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceCommand.Descriptor instead.
func (ServiceCommand) Number ¶
func (x ServiceCommand) Number() protoreflect.EnumNumber
func (ServiceCommand) String ¶
func (x ServiceCommand) String() string
func (ServiceCommand) Type ¶
func (ServiceCommand) Type() protoreflect.EnumType
type ServiceStatus ¶
type ServiceStatus int32
const ( ServiceStatus_ANY ServiceStatus = 0 ServiceStatus_STOPPED ServiceStatus = 1 ServiceStatus_STARTING ServiceStatus = 2 ServiceStatus_STOPPING ServiceStatus = 3 ServiceStatus_STARTED ServiceStatus = 4 )
func (ServiceStatus) Descriptor ¶
func (ServiceStatus) Descriptor() protoreflect.EnumDescriptor
func (ServiceStatus) Enum ¶
func (x ServiceStatus) Enum() *ServiceStatus
func (ServiceStatus) EnumDescriptor
deprecated
func (ServiceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceStatus.Descriptor instead.
func (ServiceStatus) Number ¶
func (x ServiceStatus) Number() protoreflect.EnumNumber
func (ServiceStatus) String ¶
func (x ServiceStatus) String() string
func (ServiceStatus) Type ¶
func (ServiceStatus) Type() protoreflect.EnumType
type ServiceStatusEvent ¶
type ServiceStatusEvent struct { SourceNode string `protobuf:"bytes,1,opt,name=SourceNode,proto3" json:"SourceNode,omitempty"` ServiceName string `protobuf:"bytes,2,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"` Status ServiceStatus `protobuf:"varint,3,opt,name=Status,proto3,enum=ctl.ServiceStatus" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*ServiceStatusEvent) Descriptor
deprecated
func (*ServiceStatusEvent) Descriptor() ([]byte, []int)
Deprecated: Use ServiceStatusEvent.ProtoReflect.Descriptor instead.
func (*ServiceStatusEvent) GetServiceName ¶
func (x *ServiceStatusEvent) GetServiceName() string
func (*ServiceStatusEvent) GetSourceNode ¶
func (x *ServiceStatusEvent) GetSourceNode() string
func (*ServiceStatusEvent) GetStatus ¶
func (x *ServiceStatusEvent) GetStatus() ServiceStatus
func (*ServiceStatusEvent) ProtoMessage ¶
func (*ServiceStatusEvent) ProtoMessage()
func (*ServiceStatusEvent) ProtoReflect ¶
func (x *ServiceStatusEvent) ProtoReflect() protoreflect.Message
func (*ServiceStatusEvent) Reset ¶
func (x *ServiceStatusEvent) Reset()
func (*ServiceStatusEvent) String ¶
func (x *ServiceStatusEvent) String() string
func (*ServiceStatusEvent) Validate ¶
func (this *ServiceStatusEvent) Validate() error
Click to show internal directories.
Click to hide internal directories.