config

package
v0.0.0-...-46ca7f5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Log *LogConfig `json:"log"`
}

func Fetch

func Fetch() *AppConfig

func (*AppConfig) MergeEnvironment

func (cnf *AppConfig) MergeEnvironment()

func (*AppConfig) MergeFile

func (cnf *AppConfig) MergeFile(name string)

type LogConfig

type LogConfig struct {
	Prefix string `json:"prefix" env:"CONFIG_LOG_PREFIX"`
	Bogus  string `json:"bogus"`
}

Jump to

Keyboard shortcuts

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