conf

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug                   bool
	Production              bool
	DBConfigurationFile     string
	AgnuDBConfigurationFile string
	DBConfiguration         *conf.Database
	AgnuDBConfiguration     *conf.Database
	JwtSecret               string
	// contains filtered or unexported fields
}

Config for the environment, read from a json file

func NewInitialConfig

func NewInitialConfig(fileName string) (Config, error)

NewInitialConfig reads configuration from json file and validates it

func (*Config) Validate

func (cfg *Config) Validate() error

type ConfigBase

type ConfigBase struct{}

func (*ConfigBase) ReadConfigurationFile

func (cfg *ConfigBase) ReadConfigurationFile(fileName string) ([]byte, error)

Jump to

Keyboard shortcuts

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