config

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: GPL-2.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 Config

type Config struct {
	service.ServiceConf
	ListenOn                 string
	CosConfig                *CosConfig
	CacheConf                cache.CacheConf
	WechatApplicationConfigs []*WechatApplicationConfig
	Redis                    *redis.RedisConf
	WeChatRedis              *redis.RedisConf

	SMTP *struct {
		Username string
		Password string
		Host     string
		Port     int
	}
	Mongo *struct {
		DB  string
		URL string
	}
	RocketMq *struct {
		URL       []string
		Retry     int
		GroupName string
	}
}

func NewConfig

func NewConfig() (*Config, error)

type CosConfig

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

func (*CosConfig) CIHost

func (c *CosConfig) CIHost() string

func (*CosConfig) CosHost

func (c *CosConfig) CosHost() string

type WechatApplicationConfig

type WechatApplicationConfig struct {
	AppID     string
	AppSecret string
	Type      string
}

Jump to

Keyboard shortcuts

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