buntdb

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	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 Store

type Store struct {
	*buntdb.Service
}

Store for item in buntdb.

func (*Store) DeleteCoordinate

func (s *Store) DeleteCoordinate(ctx context.Context, filter space.FilterCoordinate) (space.Coordinate, error)

DeleteCoordinate implementation for space in redis.

func (*Store) FetchManyCoordinate

func (s *Store) FetchManyCoordinate(
	ctx context.Context,
	filter space.FilterCoordinate,
) (map[string]space.Coordinate, error)

FetchManyCoordinate implementation for space in redis.

func (*Store) UpsertCoordinate

func (s *Store) UpsertCoordinate(ctx context.Context, coo space.Coordinate) error

UpsertCoordinate implementation for space in redis.

Jump to

Keyboard shortcuts

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