package
Version:
v1.0.17
Opens a new window with list of versions in this module.
Published: Apr 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
EnvLocal = "local"
EnvProd = "prod"
)
type App struct {
Env string `yaml:"Env"`
Log string `yaml:"Log"`
DenyPrivateIP bool `yaml:"DenyPrivateIP"`
SamplingSeconds int `yaml:"SamplingSeconds"`
DeltaSeconds int `yaml:"DeltaSeconds"`
TraceSeconds int `yaml:"TraceSeconds"`
}
type Bs struct {
Server *Server `yaml:"Server"`
Data *Data `yaml:"Data"`
App *App `yaml:"App"`
Plugins *PluginsConfig `yaml:"Plugins"`
}
func Load(env string, flagPort, flagEnv, flagDir, flagPprofPort, flagLog string) (bs Bs, err error)
type Data struct {
StorageDir string `yaml:"StorageDir"`
}
type PluginsConfig struct {
I18nZh bool `yaml:"i18n_zh"`
SourceFold bool `yaml:"source_fold"`
PeekFold bool `yaml:"peek_fold"`
GraphExplain bool `yaml:"graph_explain"`
}
type Server struct {
Port string `yaml:"Port"`
Port2 string `yaml:"Port2"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.