Documentation ¶
Index ¶
- type Config
- type Service
- func (s *Service) Config() interface{}
- func (s *Service) Desc() string
- func (s *Service) Expose() interface{}
- func (s *Service) ID() string
- func (s *Service) Migrations() []cfg.MigrateHandler
- func (s *Service) Name() string
- func (s *Service) Needs() map[string]struct{}
- func (s *Service) Plug(exposed map[string]interface{}) error
- func (s *Service) Run(ctx context.Context, running, stopping func()) error
- func (s *Service) SetConfig(config interface{}) error
- func (s *Service) VersionKey() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ConfigVersion is the version of the configuration file. ConfigVersion int `toml:"configuration_version" comment:"The version of the service configuration."` // Path is the path to the bleve store data. Path string `toml:"path" comment:"The path to the bleve store data."` }
Config contains configuration options for the Blevestore service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the Blevestore service.
func (*Service) Config ¶
func (s *Service) Config() interface{}
Config returns the current service configuration or creates one with good default values.
func (*Service) Expose ¶
func (s *Service) Expose() interface{}
Expose exposes the database client to other services. It exposes the database instance.
func (*Service) Migrations ¶
func (s *Service) Migrations() []cfg.MigrateHandler
Migrations is the services migrations.
Directories ¶
Path | Synopsis |
---|---|
Package mockblevestore is a generated GoMock package.
|
Package mockblevestore is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.