config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(file string) error

Types

type AppConfig

type AppConfig struct {
	Ali        ConfigAli        `yaml:"ali"`
	CloudFlare ConfigCloudFlare `yaml:"cloudflare"`
}
var Config *AppConfig

type ConfigAli

type ConfigAli struct {
	Region    string   `yaml:"region"`
	KeyId     string   `yaml:"key_id"`
	KeySecret string   `yaml:"key_secret"`
	Domains   []string `yaml:"domains"`
}

type ConfigCloudFlare

type ConfigCloudFlare struct {
	Token   string            `yaml:"token"`
	Domains map[string]string `yaml:"domains"`
}

Jump to

Keyboard shortcuts

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