config

package
v0.0.0-...-fbf6ce9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigType        = "ini"
	DefaultConfigName = ".jira-helper.config"
)

Variables

This section is empty.

Functions

func LoadLocalConfig

func LoadLocalConfig(configPath string, configName string, v *viper.Viper) error

Load the configuration file inside the viper provided instance.

Types

type Config

type Config struct {
	Host  string `mapstructure:"host" validation:"required"`
	Token string `mapstructure:"token" validation:"required"`
}
var ConfigData *Config

This is a global configuration variable that should not be modified directly other than in cmd/root when reading the configuration.

Jump to

Keyboard shortcuts

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