Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RunMode string `mapstructure:"RUN_MODE"` // HTTP Server 启动模式: debug | release HTTPServerAddress string `mapstructure:"HTTP_SERVER_ADDRESS"` // HTTP Server IP地址+端口 MySQLDSN string `mapstructure:"MYSQL_DSN"` // 链接 MySQL 的 DSN MailSenderName string `mapstructure:"MAIL_SENDER_NAME"` // 发送邮件人的名字,对方收到邮件会显示 MailSenderAddress string `mapstructure:"MAIL_SENDER_ADDRESS"` // 发送人邮件人的邮箱地址 MailSenderPassword string `mapstructure:"MAIL_SENDER_PASSWORD"` // 发送人邮件的应用专用密码 To163MailAddress string `mapstructure:"TO_163_MAIL_ADDRESS"` // 测试163邮箱接收邮件的邮箱地址 RabbitMQURL string `mapstructure:"RABBITMQ_URL"` // 连接rabbitmq服务地址 ActivateEmailURL string `mapstructure:"ACTIVATE_EMAIL_URL"` // 用户注册激活邮箱连接前缀 SignatureSecret string `mapstructure:"SIGNATURE_SECRET"` // 签名密钥 RegisterExchange string `mapstructure:"REGISTER_EXCHANGE"` // 注册 交换机名字 TokenSecret string `mapstructure:"TOKEN_SECRET"` // token 密钥 AccessTokenDuration time.Duration `mapstructure:"ACCESSTOKEN_DURATION"` // accessToken 有效时长 RefreshTokenDuration time.Duration `mapstructure:"REFRESHTOKEN_DURATION"` // refreshToken 有效时长 RedisURL string `mapstructure:"REDIS_URL"` // 连接redis地址 RedisPrefixKey string `mapstructure:"REDIS_PREFIX_KEY"` // 使用 redis 存储的key前缀 MaxUploadFileSize int64 `mapstructure:"MAX_UPLOAD_FILESIZE"` // 上传文件大小最大限制 }
Click to show internal directories.
Click to hide internal directories.