config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnableLabel = prefix + "enable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	Config config
	Auth   auth
}

func LoadConfig

func LoadConfig(configPath string) (*ConfigFile, error)

func (*ConfigFile) GetTokens

func (c *ConfigFile) GetTokens() []string

type EnvVariables

type EnvVariables struct {
	ConfigPath string `env:"CONFIG_PATH" envDefault:"/etc/dockerhook/dockerhook.yml"`
	Port       string `envDefault:"8080"`
}

func LoadEnvVariables

func LoadEnvVariables() (*EnvVariables, error)

Jump to

Keyboard shortcuts

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