Documentation ¶ Index ¶ func GetService() (service.Service, error) func GetServiceWithAddress(apiAddr string) (service.Service, error) type Program func New(apiListenAddr string) *Program func (p *Program) Start(s service.Service) error func (p *Program) Stop(s service.Service) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetService ¶ added in v0.1.2 func GetService() (service.Service, error) GetService creates a service instance with default configuration. func GetServiceWithAddress ¶ added in v0.1.2 func GetServiceWithAddress(apiAddr string) (service.Service, error) GetServiceWithAddress creates a service instance with a custom API listen address. Types ¶ type Program ¶ type Program struct { // contains filtered or unexported fields } func New ¶ func New(apiListenAddr string) *Program 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 serviceprogram.go Click to show internal directories. Click to hide internal directories.