Documentation ¶ Index ¶ Constants func Install() error func Register(startup, shutdown func()) (err error) func Restart() error func Run() error func Start() error func Uninstall() error type Program func (p *Program) Start(s service.Service) error func (p *Program) Stop(s service.Service) error Constants ¶ View Source const MODULE = "service" Variables ¶ This section is empty. Functions ¶ func Install ¶ func Install() error func Register ¶ func Register(startup, shutdown func()) (err error) func Restart ¶ func Restart() error func Run ¶ func Run() error func Start ¶ func Start() error func Uninstall ¶ func Uninstall() error Types ¶ type Program ¶ type Program struct { Startup func() Shutdown func() } func (*Program) Start ¶ func (p *Program) Start(s service.Service) error func (*Program) Stop ¶ func (p *Program) Stop(s service.Service) error Source Files ¶ View all Source files config.go service.go Click to show internal directories. Click to hide internal directories.