Documentation ¶
Overview ¶
Package daemonservice implements a service which runs and communicates with a separate daemon subprocess.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RespawnDelay = time.Minute
RespawnDelay is the minimum time between process starts. It exists to limit the speed of crash loops, it is variable to support testing.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements service.Service, delegating message processing to a subprocess.
func (*Service) ProcessMessage ¶
ProcessMessage implements service.Service by passing m to the dependent subprocess.
Directories ¶
Path | Synopsis |
---|---|
Package client is a go client library for daemonservice.
|
Package client is a go client library for daemonservice. |
Package command provides a relatively thin wrapper around exec.Cmd, adding support for communicating with the dependent process using a channel.Channel.
|
Package command provides a relatively thin wrapper around exec.Cmd, adding support for communicating with the dependent process using a channel.Channel. |
Package execution provides an abstraction for a single execution of a command with the context of daemonservice.
|
Package execution provides an abstraction for a single execution of a command with the context of daemonservice. |
proto
|
|
Package testclient implements a daemonservice client meant for testing.
|
Package testclient implements a daemonservice client meant for testing. |
Click to show internal directories.
Click to hide internal directories.