Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExitCodeDefault = -1 + iota ExitCodeSuccess ExitCodeFailure )
View Source
const ( DefaultGracefulTimeout = 30 * time.Second DefaultHeartbeatInterval = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func GetRootContext ¶
func GetWaitGroup ¶
func WithWaitGroup ¶
Types ¶
type ServerProcess ¶
type ServerProcess struct {
// contains filtered or unexported fields
}
func (*ServerProcess) SetServer ¶
func (process *ServerProcess) SetServer(server *http.Server)
func (*ServerProcess) Setup ¶
func (process *ServerProcess) Setup() error
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func GetSupervisor ¶
func GetSupervisor(options *SupervisorOptions) *Supervisor
func (*Supervisor) Handle ¶
func (supervisor *Supervisor) Handle(process Process)
func (*Supervisor) RunForever ¶
func (supervisor *Supervisor) RunForever()
Click to show internal directories.
Click to hide internal directories.