Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Name string Version string Options map[string]interface{} ErrChan chan<- error Store store.KeyValueStore ChannelMode string }
Service implements behavior common to all services.
func NewService ¶
func NewService(name, version, channelMode string, store store.KeyValueStore) (*Service, error)
NewService creates a new Service object.
func (*Service) Initialize ¶
func (service *Service) Initialize(config *ServiceConfig) error
Initialize initializes the service.
func (*Service) Uninitialize ¶
func (service *Service) Uninitialize()
Uninitialize cleans up the service.
type ServiceAPI ¶
type ServiceAPI interface { Init(*ServiceConfig) error Start(*ServiceConfig) error Stop() GetOption(string) interface{} SetOption(string, interface{}) }
ServiceAPI defines base interface.
type ServiceConfig ¶
type ServiceConfig struct { Name string Version string Listener *acn.Listener ErrChan chan<- error Store store.KeyValueStore Server server ChannelMode string TLSSettings tls.TlsSettings }
ServiceConfig specifies common configuration.
Click to show internal directories.
Click to hide internal directories.