config

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDNConfig

type CDNConfig struct {
	Url    string
	Key    string
	Prefix string
	MinTTL int
	MaxTTL int
}

type Config

type Config struct {
	service.ServiceConf
	ListenOn string
	Mongo    struct {
		URL string
		DB  string
	}
	CacheConf     cache.CacheConf
	Redis         *redis.RedisConf
	EmailConf     EmailConf
	CosConfig     *CosConfig
	FileCosConfig *CosConfig
	CdnConfig     *CDNConfig
}

func NewConfig

func NewConfig() (*Config, error)

type CosConfig

type CosConfig struct {
	AppId      string
	BucketName string
	Region     string
	SecretId   string
	SecretKey  string
}

func (*CosConfig) CosHost

func (c *CosConfig) CosHost() string

type EmailConf

type EmailConf struct {
	Host     string
	Port     int32
	Password string
	Email    string
}

Jump to

Keyboard shortcuts

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