public

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Custom
	CustomRecords string = "custom_records"
	// Cloud Providers
	TencentDnsProvider    string = "tencent"
	AliyunDnsProvider     string = "aliyun"
	GodaddyDnsProvider    string = "godaddy"
	DNSLaDnsProvider      string = "dnsla"
	AmazonDnsProvider     string = "amazon"
	CloudFlareDnsProvider string = "cloudflare"
	// Metrics Name
	DomainList     string = "domain_list"
	RecordList     string = "record_list"
	RecordCertInfo string = "record_cert_info"
)

Variables

View Source
var (
	Config    *Configuration
	Cache     *bigcache.BigCache
	CertCache *bigcache.BigCache
)

Functions

func GetID added in v0.1.4

func GetID() string

GetID 获取唯一ID

func InitCache

func InitCache()

InitCache 初始化缓存

func InitSvc

func InitSvc()

InitSvc 初始化服务

Types

type Account

type Account struct {
	CloudProvider string `yaml:"cloud_provider"`
	CloudName     string `yaml:"cloud_name"`
	SecretID      string `yaml:"secretId"`
	SecretKey     string `yaml:"secretKey"`
}

type Configuration

type Configuration struct {
	CustomRecords  []string `yaml:"custom_records"`
	CloudProviders map[string]struct {
		Accounts []map[string]string `yaml:"accounts"`
	} `yaml:"cloud_providers"`
}

Config 表示配置文件的结构

func LoadConfig

func LoadConfig() *Configuration

LoadConfig 加载配置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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