service

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BleveDocument

type BleveDocument struct {
	Metadata map[string]*storemsg.Field `json:"metadata"`
	Database string                     `json:"database"`
	Table    string                     `json:"table"`
}

BleveDocument wraps the generated Record.Metadata and adds a property that is used to distinguish documents in the index.

type Option

type Option func(o *Options)

Option defines a single option function.

func Config

func Config(val *config.Config) Option

Config configures the Config option.

func Database

func Database(val *config.Config) Option

Database configures the database option.

func Logger

func Logger(val log.Logger) Option

Logger provides a function to set the logger option.

func Nodes

func Nodes(val *config.Config) Option

Nodes configures the Nodes option.

func Table

func Table(val *config.Config) Option

Table configures the Table option.

type Options

type Options struct {
	Logger log.Logger
	Config *config.Config

	Database, Table string
	Nodes           []string
}

Options defines the available options for this package.

type Service

type Service struct {
	Config *config.Config
	// contains filtered or unexported fields
}

Service implements the AccountsServiceHandler interface

func New

func New(opts ...Option) (s *Service, err error)

New returns a new instance of Service

func (*Service) Databases

Databases implements the StoreHandler interface.

func (*Service) Delete

Delete implements the StoreHandler interface.

func (*Service) List

List implements the StoreHandler interface.

func (*Service) Read

Read implements the StoreHandler interface.

func (*Service) Tables

Tables implements the StoreHandler interface.

func (*Service) Write

Write implements the StoreHandler interface.

Jump to

Keyboard shortcuts

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