config

package
v0.0.0-...-d9a425f Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config      config
	CfgFullPath string
)

Functions

func InitConfig

func InitConfig(fullPath string) error

Types

type Feishu

type Feishu struct {
	WebhookUrl string `mapstructure:"webhook_url"`
	AppId      string `mapstructure:"app_id"`
	AppSecret  string `mapstructure:"app_secret"`
	StaffFile  string `mapstructure:"staff_file"` // staff file contain username->mobile, use mobile for feishu msg
}

type LinApiKey

type LinApiKey struct {
	Workspace string `mapstructure:"workspace"`
	ApiKey    string `mapstructure:"api_key"`
}

type Linear

type Linear struct {
	ApiAddr string      `mapstructure:"api_addr"`
	ApiKeys []LinApiKey `mapstructure:"api_keys"`
}

type Server

type Server struct {
	ListenAddr string `mapstructure:"listen_addr"`
	Https      Tls    `mapstructure:"https"`
}

type Tls

type Tls struct {
	CertFile string `mapstructure:"certificate"`
	KeyFile  string `mapstructure:"private_key"`
}

Jump to

Keyboard shortcuts

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