Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opts ¶
type Opts struct { // Config is a pointer to a struct which, if not nil, will // be populated with config from environment variables. Config interface{} // ServiceName is the name of the service e.g. service.foo ServiceName string // Firehose indicates whether a connection to Redis should be made Firehose bool // Database indicates whether a connection to MySQL should be made Database bool }
Opts defines basic initialisation options for a service
type Process ¶
type Process interface { // GetName returns a friendly name for the process for use in logs GetName() string // Start kicks off the task and only returns when the task has finished Start() error // Stop will try to gracefully end the task and should be safe to run regardless of whether the process is currently running Stop(context.Context) error }
Process is a long-running task that provides service functionality
Click to show internal directories.
Click to hide internal directories.