Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfig = &Config{ Log: Log{ DisableTimestamp: false, Level: "info", Format: "text", FileName: "./log/data.log", MaxSize: 20, }, Etcd: Etcd{ Endpoints: []string{ "127.0.0.1:2379", }, }, MySQL: MySQL{ DSN: "root:root@tcp(127.0.0.1:3306)/robber?charset=utf8mb4&parseTime=true&loc=Local", MinOpen: 5, MaxOpen: 10, }, Server: Server{ Host: "0.0.0.0", Port: 27323, }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
Click to show internal directories.
Click to hide internal directories.