database

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOpening   = "opening"
	StatusOperating = "operating"
	StatusClosing   = "closing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir string
}

type Database

type Database struct {
	Collections map[string]*collection.Collection
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(config *Config) *Database

func (*Database) GetStatus

func (db *Database) GetStatus() string

func (*Database) Start

func (db *Database) Start() error

func (*Database) Stop

func (db *Database) Stop() error

Jump to

Keyboard shortcuts

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