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 (x *Create) GetWorkingDir() string
- 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) GetCPUPercent() float32
- func (x *Status) GetCommand() string
- 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_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"`
WorkingDir string `protobuf:"bytes,8,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
// contains filtered or unexported fields
}
func (*Create) Descriptor
deprecated
func (*Create) GetCommand ¶
func (*Create) GetExecTimeout ¶
func (*Create) GetProcessNum ¶
func (*Create) GetRemainAfterExit ¶
func (*Create) GetRestartSec ¶
func (*Create) GetWorkingDir ¶
func (*Create) ProtoMessage ¶
func (*Create) ProtoMessage()
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) Descriptor
deprecated
func (*List) GetServices ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
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) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
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) Descriptor
deprecated
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type Status ¶
type Status struct {
CPUPercent float32 `protobuf:"fixed32,1,opt,name=CPUPercent,proto3" json:"CPUPercent,omitempty"`
Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
MemoryUsage uint64 `protobuf:"varint,3,opt,name=memoryUsage,proto3" json:"memoryUsage,omitempty"`
Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"`
// contains filtered or unexported fields
}
func (*Status) Descriptor
deprecated
func (*Status) GetCPUPercent ¶
func (*Status) GetCommand ¶
func (*Status) GetMemoryUsage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.