Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Server Server `mapstructure:"server"` Log Log `mapstructure:"log"` DB dbx.Options `mapstructure:"db"` Redis Redis `mapstructure:"redis"` Email Email `mapstructure:"email"` Jwt Jwt `mapstructure:"jwt"` Limit RateLimit `mapstructure:"limit"` Version string `mapstructure:"-"` BuildTime string `mapstructure:"-"` }
type Email ¶
type Email struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` MQ struct { Topic string `mapstructure:"topic"` MaxLen int64 `mapstructure:"maxLen"` BatchSize int64 `mapstructure:"batchSize"` Group string `mapstructure:"group"` Consumers []string `mapstructure:"consumers"` } `mapstructure:"mq"` Code struct { TTL time.Duration `mapstructure:"ttl"` RetryTTL time.Duration `mapstructure:"retry"` } `mapstructure:"code"` }
type Jwt ¶
type Jwt struct { Issuer string `mapstructure:"issuer"` Access struct { Expire time.Duration `mapstructure:"expire"` Delay time.Duration `mapstructure:"delay"` Key string `mapstructure:"key"` } `mapstructure:"access"` Refresh struct { Expire time.Duration `mapstructure:"expire"` Key string `mapstructure:"key"` } `mapstructure:"refresh"` }
type Server ¶
type Server struct { Address string `mapstructure:"address"` ReadTimeout time.Duration `mapstructure:"readTimeout"` WriteTimeout time.Duration `mapstructure:"writeTimeout"` IdleTimeout time.Duration `mapstructure:"idleTimeout"` MultipartMax int64 `mapstructure:"multipartMax"` Pprof bool `mapstructure:"pprof"` TLS struct { Cert string `mapstructure:"cert"` Key string `mapstructure:"key"` } `mapstructure:"tls"` }
Click to show internal directories.
Click to hide internal directories.