Documentation ¶
Overview ¶
Package utils contins various utility functions and types that doesn't fit anywhere else.
This package shouldn't really exist but...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSignalChannel ¶
GetSignalChannel returns the signal channel. This is for testing.
func InitLogs ¶
func InitLogs(service string, params LogParameters)
InitLogs configures logging for a service. This will turn on syslog logs if they are enabled or just a plain text stderr log. If there are any errors while running
func SendInterrupt ¶
func SendInterrupt()
SendInterrupt sends an interrupt signal to the waiting channel
Types ¶
type LogParameters ¶
type LogParameters struct { Level string `param:"desc=Logging level (debug, info, warning, error);default=debug;options=debug,info,warning,error"` Type string `param:"desc=Log type (syslog, plain, plus, fancy);default=plain;options=syslog,plus,fancy,plain"` }
LogParameters contains the default log parameters
Click to show internal directories.
Click to hide internal directories.