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: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var DefaultGlobal = &Config{
Server: Server{
GrpcHost: "0.0.0.0",
GrpcPort: 10130,
},
Log: Log{
DisableTimestamp: false,
Level: "info",
Format: "text",
MaxSize: 30,
MaxDays: 180,
Dir: "../log",
Compress: true,
},
}
type Config struct {
Server Server `json:"server" toml:"server"`
Log Log `json:"log" toml:"log"`
}
type Log struct {
DisableTimestamp bool `json:"disable-timestamp" toml:"disable-timestamp"`
Level string `json:"level" toml:"level"`
Format string `json:"format" toml:"format"`
MaxSize int `json:"maxsize" toml:"maxsize"`
MaxDays int `toml:"max-days" json:"max-days"`
Dir string `toml:"dir" json:"dir"`
Compress bool `toml:"compress" json:"compress"`
}
type Server struct {
GrpcHost string `json:"grpc-host" toml:"grpc-host"`
GrpcPort int `json:"grpc-port" toml:"grpc-port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.