config

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WDB_ROOT_PATH_FORMAT = "%s/wdb"

	WDB_LOGS__DIR_PATH_FORMAT   = "%s/logs"
	WDB_CONFIG_DIR_PATH_FORMAT  = "%s/configs"
	WDB_CONFIG_FILE_PATH_FORMAT = "%s/conf.json"

	WDB_PERSISTANT_STORAGE_DIR_PATH_FORMAT = "%s/wfs"

	WFS_PERSISTANT_ENTITY_DIR_PATH_FORMAT  = "%s/%s"
	WFS_PERSISTANT_ENTITY_FILE_PATH_FORMAT = "%s/%s_persisted.json"
)
View Source
const (
	ADMIN_ID                = "ADMIN_ID"
	ADMIN_PASSWORD          = "ADMIN_PASSWORD"
	PORT                    = "PORT"
	PERSISTANT_STORAGE_PATH = "PERSISTANT_STORAGE_PATH"
	OVERRIDE_CONFIG         = "OVERRIDE_CONFIG"
	ROOT_DIR_PATH           = "ROOT_DIR_PATH"
)

Variables

View Source
var WFS_DIRECTORIES = []string{"users", "namespaces", "databases", "roles"}

Functions

This section is empty.

Types

type Config

type Config struct {
	RootDirectoryPath     string `json:"ROOT_DIR_PATH"`
	AdminID               string `json:"ADMIN_ID"`
	AdminPassword         string `json:"-"`
	Port                  string `json:"PORT"`
	PersistantStoragePath string `json:"PERSISTANT_STORAGE_PATH"`
}

func Load

func Load() (*Config, error)

type ConfigMap

type ConfigMap map[string]string

Jump to

Keyboard shortcuts

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