config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbmsMapKey = "dbms"
)

Variables

This section is empty.

Functions

func GetDbmsConfig

func GetDbmsConfig() database.DbmsConfig

GetDbmsConfig returns the private struct containing the DBMS configuration

func ReadOperatorConfig

func ReadOperatorConfig(v *Viper) error

ReadOperatorConfig unmarshalls the operator configuration from a viper.Viper struct into a private struct.

See GetDbmsConfig.

Types

type OperatorConfig

type OperatorConfig map[string]database.DbmsConfig

OperatorConfig represents the key-value configuration of the operator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳