buntdb

package module
v0.0.0-...-e9ea35a Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: GPL-3.0 Imports: 4 Imported by: 2

README

buntdb

CircleCI

Redis service including launcher

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path         string
	IndexName    string
	IndexPattern string
}

Config is buntdb structure config.

func (*Config) Dial

func (c *Config) Dial(fileconf interface{}) error

Dial set the config from a config namespace.

func (Config) Equal

func (c Config) Equal(rhs Config) bool

Equal returns is both configs are equal.

type Launcher

type Launcher struct {
	*services.Configs
	// contains filtered or unexported fields
}

Launcher represents a buntdb launcher.

func (*Launcher) Down

func (l *Launcher) Down(configs services.Configs) error

Down stops the buntdb service.

func (*Launcher) Up

func (l *Launcher) Up(configs services.Configs) error

Up starts the buntdb service with new configs.

type Namespaces

type Namespaces struct {
	Buntdb services.Namespace
}

Namespaces maps configs used for buntdb service with config file namespaces.

type Service

type Service struct {
	*buntdb.DB
	Config
}

Service embed a connected buntdb client.

func (*Service) Dial

func (s *Service) Dial(cfg Config) error

Dial connects client to external buntdb service.

func (*Service) NewLauncher

func (s *Service) NewLauncher(ns Namespaces, nsRead ...services.Namespace) *Launcher

NewLauncher returns a new buntdb Launcher.

Jump to

Keyboard shortcuts

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