Documentation ¶
Overview ¶
Package ctl is a generated protocol buffer package.
It is generated from these files:
ctl.proto
It has these top-level messages:
Peer Service ServiceStatusEvent
Index ¶
- Variables
- type Peer
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetControllable() bool
- func (m *Service) GetDescription() string
- func (m *Service) GetName() string
- func (m *Service) GetRunningPeers() []*Peer
- func (m *Service) GetStatus() ServiceStatus
- func (m *Service) GetTag() string
- func (m *Service) GetVersion() string
- func (*Service) ProtoMessage()
- func (m *Service) Reset()
- func (m *Service) String() string
- type ServiceCommand
- type ServiceStatus
- type ServiceStatusEvent
- func (*ServiceStatusEvent) Descriptor() ([]byte, []int)
- func (m *ServiceStatusEvent) GetServiceName() string
- func (m *ServiceStatusEvent) GetSourceNode() string
- func (m *ServiceStatusEvent) GetStatus() ServiceStatus
- func (*ServiceStatusEvent) ProtoMessage()
- func (m *ServiceStatusEvent) Reset()
- func (m *ServiceStatusEvent) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceCommand_name = map[int32]string{
0: "START",
1: "STOP",
}
View Source
var ServiceCommand_value = map[string]int32{
"START": 0,
"STOP": 1,
}
View Source
var ServiceStatus_name = map[int32]string{
0: "ANY",
1: "STOPPED",
2: "STARTING",
3: "STOPPING",
4: "STARTED",
}
View Source
var ServiceStatus_value = map[string]int32{
"ANY": 0,
"STOPPED": 1,
"STARTING": 2,
"STOPPING": 3,
"STARTED": 4,
}
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { Id string `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"` Address string `protobuf:"bytes,2,opt,name=Address" json:"Address,omitempty"` Port int32 `protobuf:"varint,3,opt,name=Port" json:"Port,omitempty"` Metadata map[string]string `` /* 136-byte string literal not displayed */ }
func (*Peer) Descriptor ¶
func (*Peer) GetAddress ¶
func (*Peer) GetMetadata ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Version string `protobuf:"bytes,2,opt,name=Version" json:"Version,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description" json:"Description,omitempty"` Tag string `protobuf:"bytes,4,opt,name=Tag" json:"Tag,omitempty"` Controllable bool `protobuf:"varint,5,opt,name=Controllable" json:"Controllable,omitempty"` Status ServiceStatus `protobuf:"varint,7,opt,name=Status,enum=ctl.ServiceStatus" json:"Status,omitempty"` RunningPeers []*Peer `protobuf:"bytes,6,rep,name=RunningPeers" json:"RunningPeers,omitempty"` }
func (*Service) Descriptor ¶
func (*Service) GetControllable ¶
func (*Service) GetDescription ¶
func (*Service) GetRunningPeers ¶
func (*Service) GetStatus ¶
func (m *Service) GetStatus() ServiceStatus
func (*Service) GetVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
type ServiceCommand ¶
type ServiceCommand int32
const ( ServiceCommand_START ServiceCommand = 0 ServiceCommand_STOP ServiceCommand = 1 )
func (ServiceCommand) EnumDescriptor ¶
func (ServiceCommand) EnumDescriptor() ([]byte, []int)
func (ServiceCommand) String ¶
func (x ServiceCommand) String() string
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) EnumDescriptor ¶
func (ServiceStatus) EnumDescriptor() ([]byte, []int)
func (ServiceStatus) String ¶
func (x ServiceStatus) String() string
type ServiceStatusEvent ¶
type ServiceStatusEvent struct { SourceNode string `protobuf:"bytes,1,opt,name=SourceNode" json:"SourceNode,omitempty"` ServiceName string `protobuf:"bytes,2,opt,name=ServiceName" json:"ServiceName,omitempty"` Status ServiceStatus `protobuf:"varint,3,opt,name=Status,enum=ctl.ServiceStatus" json:"Status,omitempty"` }
func (*ServiceStatusEvent) Descriptor ¶
func (*ServiceStatusEvent) Descriptor() ([]byte, []int)
func (*ServiceStatusEvent) GetServiceName ¶
func (m *ServiceStatusEvent) GetServiceName() string
func (*ServiceStatusEvent) GetSourceNode ¶
func (m *ServiceStatusEvent) GetSourceNode() string
func (*ServiceStatusEvent) GetStatus ¶
func (m *ServiceStatusEvent) GetStatus() ServiceStatus
func (*ServiceStatusEvent) ProtoMessage ¶
func (*ServiceStatusEvent) ProtoMessage()
func (*ServiceStatusEvent) Reset ¶
func (m *ServiceStatusEvent) Reset()
func (*ServiceStatusEvent) String ¶
func (m *ServiceStatusEvent) String() string
Click to show internal directories.
Click to hide internal directories.