process

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionStart       = "start"
	ActionStartWait   = "start-wait"
	ActionStop        = "stop"
	ActionStopWait    = "stop-wait"
	ActionRestart     = "restart"
	ActionRestartWait = "restart-wait"
	ActionKill        = "kill"
	ActionReload      = "reload"
	ActionStatus      = "status"
	ActionExit        = "exit"
	ActionExitWait    = "exit-wait"
)

Variables

This section is empty.

Functions

func ClientClose

func ClientClose()

func Exit added in v1.5.0

func Exit() error

func ExitWait added in v1.6.0

func ExitWait() error

func InitClient

func InitClient()

func InitServer

func InitServer()

func Kill

func Kill() error

func Reload

func Reload() error

func Restart

func Restart() error

func RestartWait added in v1.3.0

func RestartWait() error

func Serve added in v1.4.1

func Serve(stop util.BroadcastCh)

func Start

func Start() error

func StartWait added in v1.3.0

func StartWait() error

func Status

func Status() error

func Stop

func Stop() error

func StopWait added in v1.3.0

func StopWait() error

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func (*Controller) Kill

func (c *Controller) Kill(_ *Request, _ *Response) error

func (*Controller) Reload

func (c *Controller) Reload(_ *Request, _ *Response) error

func (*Controller) Restart

func (c *Controller) Restart(_ *Request, _ *Response) error

func (*Controller) RestartWait added in v1.3.0

func (c *Controller) RestartWait(_ *Request, _ *Response) error

func (*Controller) Start

func (c *Controller) Start(_ *Request, _ *Response) error

func (*Controller) StartWait added in v1.3.0

func (c *Controller) StartWait(_ *Request, _ *Response) error

func (*Controller) Status

func (c *Controller) Status(_ *Request, rsp *Response) error

func (*Controller) Stop

func (c *Controller) Stop(_ *Request, _ *Response) error

func (*Controller) StopWait added in v1.3.0

func (c *Controller) StopWait(_ *Request, _ *Response) error

func (*Controller) SupPid added in v1.5.0

func (c *Controller) SupPid(_ *Request, rsp *Response) error

type Request

type Request struct {
}

type Response

type Response struct {
	Message string
	SupPid  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL