Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(ptr interface{}) error
Set initializes members in a struct referenced by a pointer. Maps and slices are initialized by `make` and other primitive types are set with default values. `ptr` should be a struct pointer
Types ¶
type Config ¶
type Config struct {
ProfileConfig ProfileConfig `yaml:"profile"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type ProfileConfig ¶
type ProfileConfig struct { LogFile string `default:"/var/log/profile.log" yaml:"log-file"` LogLevel string `default:"info" yaml:"log-level"` ListenPort int `default:"20419" yaml:"listen-port"` FlameQueryLimit int `default:"1000000" yaml:"flame_query_limit"` Querier Querier `yaml:"querier"` }
var Cfg *ProfileConfig
Click to show internal directories.
Click to hide internal directories.