config

package
v1.4.34 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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
	DefaultWechatUser        *DefaultWechatUser
	TemplateId               []string
	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 DefaultWechatUser added in v1.4.24

type DefaultWechatUser struct {
	AppId  string
	OpenId 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