Documentation
¶
Overview ¶
Package daemon uses kardianos service to make the app run as service / daemon on windows / linux.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Control ¶
func Control(s service.Service, action string, statusLogger agentstatus.AgentStatus) error
Control wraps the function from service package and adds the supported action "run" to the service.
func CreateConfig ¶
CreateConfig creates and returns Config pointer for the service.
func CreateService ¶
func CreateService(osCollection func(), sqlCollection func(), sc *service.Config, statusLogger agentstatus.AgentStatus) (service.Service, error)
CreateService initializes and returns service, or error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.