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) GetServiceNameInLogs() bool
- func (x *Create) GetTimeoutStopSec() uint64
- func (*Create) ProtoMessage()
- func (x *Create) ProtoReflect() protoreflect.Message
- func (x *Create) Reset()
- func (x *Create) String() string
- type Environment
- 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 (x *Status) GetStatus() *v1.Status
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type Statuses
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetEnv() *Environment
- func (x *Update) GetExecTimeout() int64
- func (x *Update) GetName() string
- func (x *Update) GetProcessNum() int64
- func (x *Update) GetRemainAfterExit() bool
- func (x *Update) GetRestartSec() uint64
- func (x *Update) GetServiceNameInLogs() bool
- func (x *Update) GetTimeoutStopSec() uint64
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_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 `` /* 133-byte string literal not displayed */
RestartSec uint64 `protobuf:"varint,7,opt,name=restart_sec,json=restartSec,proto3" json:"restart_sec,omitempty"`
// new in 2023.2
ServiceNameInLogs bool `protobuf:"varint,8,opt,name=service_name_in_logs,json=serviceNameInLogs,proto3" json:"service_name_in_logs,omitempty"`
TimeoutStopSec uint64 `protobuf:"varint,9,opt,name=timeout_stop_sec,json=timeoutStopSec,proto3" json:"timeout_stop_sec,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) GetServiceNameInLogs ¶
func (*Create) GetTimeoutStopSec ¶
func (*Create) ProtoMessage ¶
func (*Create) ProtoMessage()
func (*Create) ProtoReflect ¶
func (x *Create) ProtoReflect() protoreflect.Message
type Environment ¶
type Environment struct {
Values map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Environment contains the complete set of service environment overrides.
func (*Environment) Descriptor
deprecated
func (*Environment) Descriptor() ([]byte, []int)
Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetValues ¶
func (x *Environment) GetValues() map[string]string
func (*Environment) ProtoMessage ¶
func (*Environment) ProtoMessage()
func (*Environment) ProtoReflect ¶
func (x *Environment) ProtoReflect() protoreflect.Message
func (*Environment) Reset ¶
func (x *Environment) Reset()
func (*Environment) String ¶
func (x *Environment) String() string
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=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"`
// error state
Status *v1.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*Status) Descriptor
deprecated
func (*Status) GetCommand ¶
func (*Status) GetCpuPercent ¶
func (*Status) GetMemoryUsage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type Statuses ¶
type Statuses struct {
Status []*Status `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*Statuses) Descriptor
deprecated
func (*Statuses) ProtoMessage ¶
func (*Statuses) ProtoMessage()
func (*Statuses) ProtoReflect ¶
func (x *Statuses) ProtoReflect() protoreflect.Message
type Update ¶
type Update struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Desired process count, at least 1. Changes apply at the next restart opportunity.
// Excess processes finish their current execution before removal.
ProcessNum *int64 `protobuf:"varint,2,opt,name=process_num,json=processNum,proto3,oneof" json:"process_num,omitempty"`
// Maximum execution time in seconds, at least 0. Zero means unlimited.
ExecTimeout *int64 `protobuf:"varint,3,opt,name=exec_timeout,json=execTimeout,proto3,oneof" json:"exec_timeout,omitempty"`
// Whether to restart after exit. The latest value controls subsequent starts.
RemainAfterExit *bool `protobuf:"varint,4,opt,name=remain_after_exit,json=remainAfterExit,proto3,oneof" json:"remain_after_exit,omitempty"`
// Replaces the service environment overrides. A present empty message clears them.
// Processes also inherit the RoadRunner environment.
Env *Environment `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
// Delay in seconds for the next scheduled restart. Zero selects 30 seconds.
RestartSec *uint64 `protobuf:"varint,6,opt,name=restart_sec,json=restartSec,proto3,oneof" json:"restart_sec,omitempty"`
// Whether subsequent executions include the service name in log attributes.
ServiceNameInLogs *bool `protobuf:"varint,7,opt,name=service_name_in_logs,json=serviceNameInLogs,proto3,oneof" json:"service_name_in_logs,omitempty"`
// Stop timeout in seconds for subsequent executions. Zero selects 5 seconds.
TimeoutStopSec *uint64 `protobuf:"varint,8,opt,name=timeout_stop_sec,json=timeoutStopSec,proto3,oneof" json:"timeout_stop_sec,omitempty"`
// contains filtered or unexported fields
}
Update stores configuration for subsequent executions of an existing service. Current processes keep their execution settings. Omitted fields keep their stored values. A name-only update succeeds. Response.ok confirms that the configuration was accepted.
func (*Update) Descriptor
deprecated
func (*Update) GetEnv ¶
func (x *Update) GetEnv() *Environment
func (*Update) GetExecTimeout ¶
func (*Update) GetProcessNum ¶
func (*Update) GetRemainAfterExit ¶
func (*Update) GetRestartSec ¶
func (*Update) GetServiceNameInLogs ¶
func (*Update) GetTimeoutStopSec ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.