store

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	store.Store
	plugins.Service
}

type Store

type Store struct {
	document.Serializer
	// contains filtered or unexported fields
}

func NewStoreWithKvStore

func NewStoreWithKvStore(kvs kv.Service) *Store

func (*Store) CreateDatabase

func (store *Store) CreateDatabase(name string) error

CreateDatabase creates a new database.

func (*Store) GetDatabase

func (store *Store) GetDatabase(name string) (store.Database, error)

GetDatabase retruns the specified database.

func (*Store) RemoveDatabase

func (store *Store) RemoveDatabase(name string) error

RemoveDatabase removes the specified database.

func (*Store) ServiceName

func (store *Store) ServiceName() string

ServiceName returns the plug-ing service name.

func (*Store) ServiceType

func (store *Store) ServiceType() plugins.ServiceType

ServiceType returns the plug-ing service type.

func (*Store) SetSerializer

func (store *Store) SetSerializer(serializer document.Serializer)

SetSerializer sets the serializer.

func (*Store) Start

func (store *Store) Start() error

Start starts this store.

func (*Store) Stop

func (store *Store) Stop() error

Stop stops this store.

Directories

Path Synopsis
kv
fdb

Jump to

Keyboard shortcuts

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