Documentation ¶
Index ¶
- Variables
- type Create
- func (*Create) Descriptor() ([]byte, []int)deprecated
- func (x *Create) GetCommand() string
- func (x *Create) GetEnv() map[string]string
- func (x *Create) GetExecTimeout() int64
- func (x *Create) GetName() string
- func (x *Create) GetProcessNum() int64
- func (x *Create) GetRemainAfterExit() bool
- func (x *Create) GetRestartSec() uint64
- func (*Create) ProtoMessage()
- func (x *Create) ProtoReflect() protoreflect.Message
- func (x *Create) Reset()
- func (x *Create) String() string
- type List
- type Response
- type Service
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetCommand() string
- func (x *Status) GetCpuPercent() float32
- func (x *Status) GetMemoryUsage() uint64
- func (x *Status) GetPid() int32
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_service_v1_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` ProcessNum int64 `protobuf:"varint,3,opt,name=process_num,json=processNum,proto3" json:"process_num,omitempty"` ExecTimeout int64 `protobuf:"varint,4,opt,name=exec_timeout,json=execTimeout,proto3" json:"exec_timeout,omitempty"` RemainAfterExit bool `protobuf:"varint,5,opt,name=remain_after_exit,json=remainAfterExit,proto3" json:"remain_after_exit,omitempty"` Env map[string]string `` /* 147-byte string literal not displayed */ RestartSec uint64 `protobuf:"varint,7,opt,name=restart_sec,json=restartSec,proto3" json:"restart_sec,omitempty"` // contains filtered or unexported fields }
func (*Create) ProtoReflect ¶
func (x *Create) ProtoReflect() protoreflect.Message
type List ¶
type List struct { Services []string `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type Status ¶
type Status struct { CpuPercent float32 `protobuf:"fixed32,1,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` MemoryUsage uint64 `protobuf:"varint,3,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"` Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.