config

package
v0.0.0-...-2734c1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_DIR    = "/config"
	ConfigFile            = "config.yml"
	AppName               = "gopg"
	EnvServiceBindingRoot = "SERVICE_BINDING_ROOT"
)

Variables

View Source
var (
	EnvConfigDir = strings.ToUpper(AppName) + "_CONFIG_DIR"
	AppVersion   = "0.0.1"
	AppPort      = 8080
)

Functions

This section is empty.

Types

type Conf

type Conf models.Config

func (*Conf) GetConfigDir

func (cfg *Conf) GetConfigDir() *Conf

func (*Conf) LoadConfigFromBindings

func (cfg *Conf) LoadConfigFromBindings(t string) error

func (*Conf) LoadConfigFromFile

func (cfg *Conf) LoadConfigFromFile() error

func (*Conf) NewConfig

func (cfg *Conf) NewConfig()

Jump to

Keyboard shortcuts

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