Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithGracefulStopFunc ¶
func WithGracefulStopFunc(gracefulStopFunc func()) option
func WithNumCPU ¶
func WithNumCPU(numCPU int) option
func WithRLimitEnabled ¶
func WithRLimitEnabled() option
func WithRunFunc ¶
func WithRunFunc(runFunc func()) option
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (*Hooks) OnStarting ¶
func (h *Hooks) OnStarting() func()
func (*Hooks) SetOnStarted ¶
func (h *Hooks) SetOnStarted(hook func())
func (*Hooks) SetOnStarting ¶
func (h *Hooks) SetOnStarting(hook func())
func (*Hooks) SetOnStopped ¶
func (h *Hooks) SetOnStopped(hook func())
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) AddRunFunc ¶
func (r *Runtime) AddRunFunc(runFunc func())
Click to show internal directories.
Click to hide internal directories.