databases

package
v3.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoltDatabase

func BoltDatabase(file string, _ map[string]string) (lurkcoin.Database, error)

func GetSupportedDatabaseTypes

func GetSupportedDatabaseTypes() []string

func OpenDatabase

func OpenDatabase(dbType, location string, options map[string]string) (lurkcoin.Database, error)

Opens a database. The options parameter can be nil.

func PlaintextDatabase

func PlaintextDatabase(location string, _ map[string]string) (lurkcoin.Database, error)

func RegisterDatabaseType

func RegisterDatabaseType(name string, f databaseFactory)

Registers a new database type. WARNING: This function is not goroutine-safe and should probably only be called from init().

Types

This section is empty.

Jump to

Keyboard shortcuts

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