config

package
v0.0.0-...-1b2986d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server   ServerConfig
	Redis    RedisConfig
	BlogInfo BlogInfoConfig
	SendBy   SendByConfig
	Smtp     SmtpConfig
	Aliyun   AliyunConfig
)

Functions

This section is empty.

Types

type AliyunConfig

type AliyunConfig struct {
	AccessKey    string `yaml:"AccessKey"`
	AccessSecret string `yaml:"AccessSecret"`
	Region       string `yaml:"Region"`
	Domain       string `yaml:"Domain"`
	Version      string `yaml:"Version"`
	Email        string `yaml:"Email"`
}

type BlogInfoConfig

type BlogInfoConfig struct {
	Title       string `yaml:"Title"`
	Addr        string `yaml:"BlogAddress"`
	AuthorEmail string `yaml:"AuthorEmail"`
}

type Config

type Config struct {
	ServerConfig   `yaml:"Server"`
	BlogInfoConfig `yaml:"BlogInfo"`
	RedisConfig    `yaml:"Redis"`
	SendByConfig   `yaml:"SendBy"`
	SmtpConfig     `yaml:"Smtp"`
	AliyunConfig   `yaml:"Aliyun"`
}

type RedisConfig

type RedisConfig struct {
	Enable      bool   `yaml:"Enable"`
	Addr        string `yaml:"Address"`
	Pwd         string `yaml:"Password"`
	Db          int    `yaml:"Database"`
	Prefix      string `yaml:"Prefix"`
	Concurrency int    `yaml:"Concurrency"`
}

type SendByConfig

type SendByConfig struct {
	Owner string `yaml:"Owner"`
	Guest string `yaml:"Guest"`
}

type ServerConfig

type ServerConfig struct {
	Addr  string `yaml:"Address"`
	Debug bool   `yaml:"Debug"`
}

type SmtpConfig

type SmtpConfig struct {
	Host   string `yaml:"Host"`
	Port   int    `yaml:"Port"`
	Secure bool   `yaml:"Secure"`
	User   string `yaml:"Username"`
	Pwd    string `yaml:"Password"`
}

Jump to

Keyboard shortcuts

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