config

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSetting

type AppSetting struct {
	AppHost              string `json:"app_host"`
	AppPort              string `json:"app_port"`
	AppBasicAuthUsername string `json:"app_basic_auth_username"`
	AppBasicAuthPassword string `json:"app_basic_auth_password"`
}

type Config

type Config struct {
	AppSetting     AppSetting     `json:"app_setting"`
	WebhookSetting WebhookSetting `json:"webhook_setting"`
}

func LoadConfig

func LoadConfig(filename string) *Config

type Mapping

type Mapping struct {
	RepoName   string `json:"repo_name"`
	BranchName string `json:"branch_name"`
	Command    string `json:"command"`
}

type WebhookSetting

type WebhookSetting struct {
	Github struct {
		Mapping []Mapping `json:"mapping"`
	} `json:"github"`
	Gitlab struct {
		Mapping []Mapping `json:"mapping"`
	} `json:"gitlab"`
	Bitbucket struct {
		Mapping []Mapping `json:"mapping"`
	} `json:"bitbucket"`
}

Jump to

Keyboard shortcuts

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