query

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewService

func NewService() *BaseService

NewService returns a new query base service.

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

type Config struct {
	config.Config
}

Config represents a query service configuration.

func NewConfigWith added in v0.9.0

func NewConfigWith(config config.Config) *Config

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL