Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewConfigFromArgs)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { FinderType int `flag:"type"` DataPath string `flag:"path"` HTTPAddr string `flag:"http-addr"` RedisAddr string `flag:"redis-addr"` PrometheusHostPorts string `flag:"prometheus-host-port"` PrometheusPath string `flag:"prometheus-path"` HertzPrometheusHostPorts string `flag:"hertz-prometheus-host-port"` HertzPrometheusPath string `flag:"hertz-prometheus-path"` PrometheusEnableGoCollector bool `flag:"prometheus-enable-go-coll"` DisablePrintRoute bool `flag:"disable-print-route"` }
func NewConfigFromArgs ¶
func NewConfigFromArgs() *Config
type ConfigTags ¶
type ConfigTags struct { FinderType string // `flag:"type"` DataPath string // `flag:"path"` HTTPAddr string // `flag:"http-addr"` RedisAddr string // `flag:"redis-addr"` PrometheusHostPorts string // `flag:"prometheus-host-port"` PrometheusPath string // `flag:"prometheus-path"` HertzPrometheusHostPorts string // `flag:"hertz-prometheus-host-port"` HertzPrometheusPath string // `flag:"hertz-prometheus-path"` PrometheusEnableGoCollector string // `flag:"prometheus-enable-go-coll"` DisablePrintRoute string // `flag:"disable-print-route"` }
ConfigTags indicate tags of type Config
func (*ConfigTags) Values ¶
func (t *ConfigTags) Values() []string
Values return all tags of Config as slice
Click to show internal directories.
Click to hide internal directories.