appConfig

package
v1.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBase

type DataBase struct {
	Driver   string `json:"driver"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	DataBase string `json:"database"`
}

type Mail

type Mail struct {
	Host string   `json:"host"`
	Port int      `json:"port"`
	User string   `json:"user"`
	Pass string   `json:"pass"`
	To   []string `json:"to"` // 收件人
}

type Oss

type Oss struct {
	EndPoint        string `json:"end_point"`
	AccessKeyId     string `json:"access_key_id"`
	AccessKeySecret string `json:"access_key_secret"`
	BucketName      string `json:"bucket_name"`
	BucketUrl       string `json:"bucket_url"`
	CallbackAddr    string `json:"callback_addr"`
	UploadDir       string `json:"upload_dir"`
}

type Redis

type Redis struct {
	NetWork  string `json:"net_work"`
	Addr     string `json:"addr"`
	Port     int    `json:"port"`
	Password string `json:"password"`
	DataBase int    `json:"data_base"`
	Prefix   string `json:"prefix"` // 前缀
}

type SLSConfig

type SLSConfig struct {
	Endpoint        string `json:"endpoint"`
	AccessKeyID     string `json:"access_key_id"`
	AccessKeySecret string `json:"access_key_secret"`
	Project         string `json:"project"`
	LogStore        string `json:"log_store"`
	Topic           string `json:"topic"`
	Source          string `json:"source"`
}

Jump to

Keyboard shortcuts

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