database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: AGPL-3.0 Imports: 1 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 {
	Get(server, key string) (string, bool)
	Set(server, key, value string, expire int64) error
	Close() error
}

func NewDatabase

func NewDatabase(dbType, address string) Database

type DbType

type DbType = string
const (
	DbTypeMemory DbType = "memory"
	DbTypeBuntDb DbType = "buntdb"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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