Documentation ¶
Overview ¶
Diamond package provides runlevels to an application
API is considered unstable until further notice
Index ¶
Constants ¶
View Source
const ( SINGLEUSER = 1 MULTIUSER = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { HookLevel0 func() []net.Listener HookLevel1 func() []net.Listener HookLevel2 func() []net.Listener HookLevel3 func() []net.Listener HookLevel4 func() []net.Listener // contains filtered or unexported fields }
Server ...
func New ¶
New creates a new Server, with a socket at socketpath, and starts listening.
Optional ptrs are pointers to types (`new(t)`) that contain methods Each given of given ptrs must satisfy the criteria in the net/rpc package See https://godoc.org/net/rpc for these criteria.
func (*Server) AddHTTPHandler ¶
AddHTTPHandler can restart, returns how many http handlers will be used (for shutdown and restarts)
func (*Server) AddListener ¶
AddListener listeners can only shutdown a port, not restart, returns total number of listeners (for shutdown)
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
diamond-admin
diamond-admin command for controlling a diamond daemon
|
diamond-admin command for controlling a diamond daemon |
simplesrv
serve files from single directory
|
serve files from single directory |
Diamond package provides runlevels to an application API is considered unstable until further notice
|
Diamond package provides runlevels to an application API is considered unstable until further notice |
Click to show internal directories.
Click to hide internal directories.