config

package
v0.0.7-beta Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v0.0.6

type Auth struct {
	AccessSecret string `json:"accessSecret" yaml:"AccessSecret"`
	AccessExpire int64  `json:"accessExpire" yaml:"AccessExpire"`
}

type Captcha

type Captcha struct {
	KeyLong   int `json:"keyLong" yaml:"KeyLong"`     // captcha length
	ImgWidth  int `json:"imgWidth" yaml:"ImgWidth"`   // captcha width
	ImgHeight int `json:"imgHeight" yaml:"ImgHeight"` // captcha height
}

type Config

type Config struct {
	rest.RestConf `yaml:",inline"`
	Auth          Auth               `json:"auth" yaml:"Auth"`
	RedisConf     redis.RedisConf    `json:"redisConf" yaml:"RedisConf"`
	CoreRpc       zrpc.RpcClientConf `json:"coreRpc" yaml:"CoreRpc"`
	Captcha       Captcha            `json:"captcha" yaml:"Captcha"`
	DB            gormsql.GORMConf   `json:"databaseConf" yaml:"DatabaseConf"`
}

type ConsulConfig added in v0.0.6

type ConsulConfig struct {
	Consul consul.Conf
}

Jump to

Keyboard shortcuts

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