Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminOption ¶
type DatabaseOption ¶
type LoggerOption ¶
type LoggerOption struct {
Level string `default:"debug"`
}
type Option ¶
type Option struct { Logger LoggerOption Server ServerOption DB DatabaseOption Admin AdminOption Jwt JwtOption Router RouterOption Signature SignatureOption Redis RedisOption }
type RedisOption ¶ added in v1.2.4
type RedisOption struct { Enable bool `default:"false"` Host string `default:"localhost"` Password string `default:""` DB int `default:"0"` Port int `default:"6379"` }
func (RedisOption) Addr ¶ added in v1.2.4
func (r RedisOption) Addr() string
type RouterOption ¶
type RouterOption struct {
Prefix string `default:""`
}
type ServerOption ¶
type SignatureOption ¶
Click to show internal directories.
Click to hide internal directories.