globals

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultGlobalConfig = &structureSpec.Database{
	Size: 1000000,
}

TODO, get from project?

Functions

func New

func New(hash string, logger log.StandardLogger, factory kvdb.Factory) (iface.Database, error)

Types

type Database

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

func (*Database) Close

func (db *Database) Close()

func (*Database) Config

func (db *Database) Config() *structureSpec.Database

func (*Database) DBContext

func (db *Database) DBContext() iface.Context

func (*Database) KV

func (db *Database) KV() iface.KV

func (*Database) SetConfig

func (db *Database) SetConfig(config *structureSpec.Database)

Directories

Path Synopsis
p2p

Jump to

Keyboard shortcuts

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