config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(configPath string) *errors.Error

InitConfig 配置初始化

func KeyTypeList

func KeyTypeList(input []string) []certcrypto.KeyType

KeyTypeList 返回证书类型列表

Types

type BaseConf

type BaseConf struct {
	Name        string
	Dev         bool
	LogLevel    string
	Email       string
	UserAgent   string
	DomainGroup map[string]*DomainConf
	HTTPTimeout time.Duration
	AcmeURL     string
	RootDir     string
	Expires     time.Duration
	AfterRenew  string
}

BaseConf 配置

var Config BaseConf

Config 配置

type DomainConf

type DomainConf struct {
	Domains   []string
	KeyType   []certcrypto.KeyType
	Challenge string
	Options   map[string]string
}

DomainConf 单个域名的配置

Jump to

Keyboard shortcuts

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