storage

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *sql.DB

func Get

func Get(key string) (value string, err error)

func InitDatabase

func InitDatabase(option *InitDatabaseOption)

func Store

func Store(key, value string) (err error)

Types

type DatabaseType

type DatabaseType int
const (
	InMemorySQLite DatabaseType = iota
	SQLite
)

type InitDatabaseOption

type InitDatabaseOption struct {
	SqlitePath   string
	DatabaseType DatabaseType
}

Jump to

Keyboard shortcuts

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