storage

package
v0.0.0-...-e589b7e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Close()
	Open() (Session, error)
}

func NewBoltDatabase

func NewBoltDatabase(con string) Database

func NewDatabase

func NewDatabase(driverFlag, sourceFlag string, locklessFlag bool) Database

func NewRAMDatabase

func NewRAMDatabase() Database

func NewSQLDatabase

func NewSQLDatabase(driver string, con string, lockless bool) Database

type Session

type Session interface {
	Close()
	Load(id uint64, data []byte) []byte
	Store(id uint64, data []byte)
}

Jump to

Keyboard shortcuts

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