Documentation
¶
Overview ¶
Package svcctl provides functions that make use of an IPC device, as well as common IPC handlers and requesters. The intent is to guard the authority and uniqueness of the state service, so localized error messages refer to the "service" rather than just the IPC server.
Index ¶
- Variables
- func EnsureExecStartedAndLocateHTTP(ipComm IPCommunicator, exec, argText string, out output.Outputer) (addr string, err error)
- func EnsureStartedAndLocateHTTP(argText string, out output.Outputer) (addr string, err error)
- func ExitCodeHandler(cfg *config.Instance, resolver Resolver, analyticsReporter AnalyticsReporter) ipc.RequestHandler
- func HTTPAddrHandler(addr string) ipc.RequestHandler
- func HeartbeatHandler(cfg *config.Instance, resolver Resolver, analyticsReporter AnalyticsReporter) ipc.RequestHandler
- func LocateHTTP(ipComm IPCommunicator) (addr string, err error)
- func LogFileHandler(logFile string) ipc.RequestHandler
- func LogFileName(ipComm IPCommunicator) (string, error)
- func NewDefaultIPCClient() *ipc.Client
- func NewIPCSockPathFromGlobals() *ipc.SockPath
- func StopServer(ipComm IPCommunicator) error
- type AnalyticsReporter
- type Comm
- type IPCommunicator
- type Requester
- type Resolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyHTTPAddr = "http-addr" KeyLogFile = "log-file" KeyHeartbeat = "heart<" KeyExitCode = "exitcode<" )
Functions ¶
func ExitCodeHandler ¶
func ExitCodeHandler(cfg *config.Instance, resolver Resolver, analyticsReporter AnalyticsReporter) ipc.RequestHandler
func HTTPAddrHandler ¶
func HTTPAddrHandler(addr string) ipc.RequestHandler
func HeartbeatHandler ¶
func HeartbeatHandler(cfg *config.Instance, resolver Resolver, analyticsReporter AnalyticsReporter) ipc.RequestHandler
func LocateHTTP ¶
func LocateHTTP(ipComm IPCommunicator) (addr string, err error)
func LogFileHandler ¶
func LogFileHandler(logFile string) ipc.RequestHandler
func LogFileName ¶
func LogFileName(ipComm IPCommunicator) (string, error)
func NewDefaultIPCClient ¶
func StopServer ¶
func StopServer(ipComm IPCommunicator) error
Types ¶
type AnalyticsReporter ¶
type AnalyticsReporter interface { EventWithSource(category, action, source string, dims ...*dimensions.Values) EventWithSourceAndLabel(category, action, source, label string, dims ...*dimensions.Values) }
type IPCommunicator ¶
Click to show internal directories.
Click to hide internal directories.