Documentation ¶
Index ¶
- Constants
- type Config
- type Configurer
- type Env
- type Logger
- type Plugin
- func (p *Plugin) Init(cfg Configurer, log Logger) error
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() any
- func (p *Plugin) Reset() error
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop(context.Context) error
- func (p *Plugin) Weight() uint
- func (p *Plugin) Workers() []*process.State
- type Process
- type Service
Constants ¶
View Source
const PluginName string = "service"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Process ¶
Process structure contains an information about process, restart information, log, errors, etc
func NewServiceProcess ¶
NewServiceProcess constructs service process structure
type Service ¶
type Service struct { Command string `mapstructure:"command"` UseServiceName bool `mapstructure:"service_name_in_log"` ProcessNum int `mapstructure:"process_num"` ExecTimeout time.Duration `mapstructure:"exec_timeout"` RemainAfterExit bool `mapstructure:"remain_after_exit"` RestartSec uint64 `mapstructure:"restart_sec"` TimeoutStopSec uint64 `mapstructure:"timeout_stop_sec"` Env Env `mapstructure:"env"` User string `mapstructure:"user"` }
Service represents particular service configuration
Click to show internal directories.
Click to hide internal directories.