Documentation
¶
Index ¶
- type BaseService
- func (service *BaseService) Coordinator() coordinator.Coordinator
- func (service *BaseService) ServiceType() plugins.ServiceType
- func (service *BaseService) SetConfig(config config.Config)
- func (service *BaseService) SetCoordinator(coordinator coordinator.Coordinator)
- func (service *BaseService) SetStore(store store.Store)
- func (service *BaseService) Store() store.Store
- type Config
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseService ¶
type BaseService struct {
Config *Config
// contains filtered or unexported fields
}
func (*BaseService) Coordinator ¶ added in v0.9.0
func (service *BaseService) Coordinator() coordinator.Coordinator
Coordinator returns the coordinator.
func (*BaseService) ServiceType ¶
func (service *BaseService) ServiceType() plugins.ServiceType
ServiceType returns the plug-ing service type.
func (*BaseService) SetConfig ¶ added in v0.9.0
func (service *BaseService) SetConfig(config config.Config)
func (*BaseService) SetCoordinator ¶ added in v0.9.0
func (service *BaseService) SetCoordinator(coordinator coordinator.Coordinator)
SetCoordinator sets the coordinator.
func (*BaseService) SetStore ¶
func (service *BaseService) SetStore(store store.Store)
SetStore sets the store.
func (*BaseService) Store ¶
func (service *BaseService) Store() store.Store
Store returns the store.
type Config ¶ added in v0.9.0
Config represents a query service configuration.
func NewConfigWith ¶ added in v0.9.0
NewConfig returns a new service configuration.
type Service ¶
type Service interface {
plugins.Service
// SetConfig sets the config.
SetConfig(config config.Config)
// SetCoordinator sets the coordinator.
SetCoordinator(coordinator coordinator.Coordinator)
// Coordinator returns the coordinator.
Coordinator() coordinator.Coordinator
// SetStore sets the store.
SetStore(store store.Store)
// Store returns the store.
Store() store.Store
// SetTracer sets the tracing tracer.
SetTracer(t tracer.Tracer)
// SetPort sets the listen port.
SetPort(port int)
}
Service represents a query service.
Click to show internal directories.
Click to hide internal directories.