config

package
v0.5.0-test2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LoadConfigFile added in v0.4.0

func LoadConfigFile() *viper.Viper

Types

type Config added in v0.4.0

type Config struct {
	PORT                               string `mapstructure:"PORT"`
	DB_URL                             string `mapstructure:"DB_URL"`
	MODE                               string `mapstructure:"MODE"`
	JIRA_ENDPOINT                      string `mapstructure:"JIRA_ENDPOINT"`
	JIRA_BASIC_AUTH_ENCODED            string `mapstructure:"JIRA_BASIC_AUTH_ENCODED"`
	JIRA_ISSUE_EPIC_KEY_FIELD          string `mapstructure:"JIRA_ISSUE_EPIC_KEY_FIELD"`
	JIRA_ISSUE_WORKLOAD_FIELD          string `mapstructure:"JIRA_ISSUE_WORKLOAD_FIELD"`
	JIRA_BOARD_GITLAB_PROJECTS         string `mapstructure:"JIRA_BOARD_GITLAB_PROJECTS"`
	JIRA_ISSUE_BUG_STATUS_MAPPING      string `mapstructure:"JIRA_ISSUE_BUG_STATUS_MAPPING"`
	JIRA_ISSUE_INCIDENT_STATUS_MAPPING string `mapstructure:"JIRA_ISSUE_INCIDENT_STATUS_MAPPING"`
	JIRA_ISSUE_STORY_STATUS_MAPPING    string `mapstructure:"JIRA_ISSUE_STORY_STATUS_MAPPING"`
	JIRA_ISSUE_TYPE_MAPPING            string `mapstructure:"JIRA_ISSUE_TYPE_MAPPING"`
	GITLAB_ENDPOINT                    string `mapstructure:"GITLAB_ENDPOINT"`
	GITLAB_AUTH                        string `mapstructure:"GITLAB_AUTH"`
	GITHUB_ENDPOINT                    string `mapstructure:"GITHUB_ENDPOINT"`
	GITHUB_AUTH                        string `mapstructure:"GITHUB_AUTH"`
	GITHUB_PROXY                       string `mapstructure:"GITHUB_PROXY"`
	JENKINS_ENDPOINT                   string `mapstructure:"JENKINS_ENDPOINT"`
	JENKINS_USERNAME                   string `mapstructure:"JENKINS_USERNAME"`
	JENKINS_PASSWORD                   string `mapstructure:"JENKINS_PASSWORD"`
	FEISHU_APPID                       string `mapstructure:"FEISHU_APPID"`
	FEISHU_APPSCRECT                   string `mapstructure:"FEISHU_APPSCRECT"`
	AE_APP_ID                          string `mapstructure:"AE_APP_ID"`
	AE_NONCE_STR                       string `mapstructure:"AE_NONCE_STR"`
	AE_SIGN                            string `mapstructure:"AE_SIGN"`
	AE_ENDPOINT                        string `mapstructure:"AE_ENDPOINT"`
}

func GetConfigJson added in v0.4.0

func GetConfigJson() (*Config, error)

Jump to

Keyboard shortcuts

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