fdb

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RequiredAPIVersion int = 710
	ClusterFile            = "cluster_file"
)

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) GetClusterFile added in v1.1.1

func (store *Store) GetClusterFile() (string, error)

GetClusterFile returns the cluster file configuration.

func (*Store) ServiceName

func (store *Store) ServiceName() string

ServiceName returns the plug-in service name.

func (*Store) ServiceType

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

ServiceType returns the plug-in 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