config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatastore

func InitDatastore(configs []map[string]interface{}) error

func NewDatabase

func NewDatabase(config map[string]any) (database db.DatabaseI, err error)

func OpenConfigFile

func OpenConfigFile(path string) (databaseConfigs []map[string]any, err error)

Types

type ConfigFormat

type ConfigFormat struct {
	Databases []map[string]any `json:"databases"`
}

Jump to

Keyboard shortcuts

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