ctl

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Peer) GetAddress

func (m *Peer) GetAddress() string

func (*Peer) GetId

func (m *Peer) GetId() string

func (*Peer) GetMetadata

func (m *Peer) GetMetadata() map[string]string

func (*Peer) GetPort

func (m *Peer) GetPort() int32

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

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) Descriptor() ([]byte, []int)

func (*Service) GetControllable

func (m *Service) GetControllable() bool

func (*Service) GetDescription

func (m *Service) GetDescription() string

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) GetRunningPeers

func (m *Service) GetRunningPeers() []*Peer

func (*Service) GetStatus

func (m *Service) GetStatus() ServiceStatus

func (*Service) GetTag

func (m *Service) GetTag() string

func (*Service) GetVersion

func (m *Service) GetVersion() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

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

Jump to

Keyboard shortcuts

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