storage

package
v0.8.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThreadGdbmDb

type ThreadGdbmDb struct {
	// contains filtered or unexported fields
}

func NewThreadGdbmDb

func NewThreadGdbmDb() *ThreadGdbmDb

func (*ThreadGdbmDb) Close

func (tdb *ThreadGdbmDb) Close() error

func (*ThreadGdbmDb) Connect

func (tdb *ThreadGdbmDb) Connect(ctx context.Context, connStr string) error

func (*ThreadGdbmDb) Dump

func (tdb *ThreadGdbmDb) Dump(ctx context.Context, key []byte) (*db.Dumper, error)

func (*ThreadGdbmDb) Get

func (tdb *ThreadGdbmDb) Get(ctx context.Context, key []byte) ([]byte, error)

func (*ThreadGdbmDb) Prefix

func (tdb *ThreadGdbmDb) Prefix() uint8

func (*ThreadGdbmDb) Put

func (tdb *ThreadGdbmDb) Put(ctx context.Context, key []byte, val []byte) error

func (*ThreadGdbmDb) Safe

func (tdb *ThreadGdbmDb) Safe() bool

func (*ThreadGdbmDb) SetLanguage

func (tdb *ThreadGdbmDb) SetLanguage(lng *lang.Language)

func (*ThreadGdbmDb) SetLock

func (tdb *ThreadGdbmDb) SetLock(typ uint8, locked bool) error

func (*ThreadGdbmDb) SetPrefix

func (tdb *ThreadGdbmDb) SetPrefix(pfx uint8)

func (*ThreadGdbmDb) SetSession

func (tdb *ThreadGdbmDb) SetSession(sessionId string)

Jump to

Keyboard shortcuts

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