Discover Packages
github.com/bingjian-zhu/gin-inject
common
setting
package
Version:
v0.0.0-...-5d738b8
Opens a new window with list of versions in this module.
Published: Nov 6, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Conf struct {
Server Server `yaml:"server"`
Database Database `yaml:"database"`
Redis Redis `yaml:"redis"`
RabbitMQ RabbitMQ `yaml:"rabbitmq"`
}
type Database struct {
Type string `yaml:"type"`
User string `yaml:"user"`
Password string `yaml:"password"`
Host string `yaml:"host"`
Name string `yaml:"name"`
TablePrefix string `yaml:"table-prefix"`
}
type RabbitMQ struct {
Addr string `yaml:"addr"`
Port int `yaml:"port"`
User string `yaml:"user"`
Pass string `yaml:"pass"`
}
type Redis struct {
Addr string `yaml:"addr"`
Pass string `yaml:"pass"`
DB int `yaml:"db"`
Timeout time .Duration `yaml:"timeout"`
ExpiredTime int `yaml:"expired-time"`
}
type Server struct {
Port string `yaml:"port"`
ReadTimeout string `yaml:"read-timeout"`
WriteTimeout string `yaml:"write-timeout"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.