package
Version:
v0.0.0-...-d2b7790
Opens a new window with list of versions in this module.
Published: Jan 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var Global = Config{
ServiceName: "rogue-finder",
App: App{
HttpHost: "",
HttpPort: 9913,
},
Etcd: Etcd{
Endpoints: []string{"127.0.0.1:2379"},
},
Log: Log{
DisableTimestamp: false,
Level: "info",
Format: "text",
MaxSize: 20,
Dir: "../log",
},
}
type App struct {
HttpHost string `json:"http-host" toml:"http-host"`
HttpPort int `json:"http-port" toml:"http-port"`
}
type Config struct {
ServiceName string `json:"service-name" toml:"service-name"`
App App `json:"app" toml:"app"`
Etcd Etcd `json:"etcd" toml:"etcd"`
Log Log `json:"log" toml:"log"`
}
type Etcd struct {
Endpoints []string `json:"endpoints" toml:"endpoints"`
}
type Log struct {
DisableTimestamp bool `json:"disable-timestamp" toml:"disable-timestamp"`
Dir string `json:"dir" toml:"dir"`
Level string `json:"level" toml:"level"`
Format string `json:"format" toml:"format"`
MaxSize int `json:"maxsize" toml:"maxsize"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.