fdb

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RequiredAPIVersion int = 630

Variables

This section is empty.

Functions

func NewStore

func NewStore() kvPlugin.Service

NewStore returns a new FoundationDB store instance.

func NewStoreWith added in v0.9.0

func NewStoreWith(coder document.KeyCoder) kvPlugin.Service

NewStoreWith returns a new FoundationDB store instance with the specified key coder.

Types

type Store

type Store struct {
	*kvPlugin.BaseStore
	fdb.Database
}

Store represents a FoundationDB store service instance.

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) Start

func (store *Store) Start() error

Start starts this memdb.

func (*Store) Stop

func (store *Store) Stop() error

Stop stops this memdb.

func (*Store) Transact added in v0.9.0

func (store *Store) Transact(write bool) (kvStore.Transaction, error)

Transact begin a new transaction.

Jump to

Keyboard shortcuts

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