Documentation ¶
Index ¶
- Constants
- func ExchangeCommand(cfgPath *string) *cobra.Command
- func InitCommands() *cobra.Command
- func InitOtel(ctx context.Context, cfg *OtelConfig) error
- func RevProxyCommand(cfgPath *string) *cobra.Command
- type AppConfig
- type ExchaneConfig
- type MeterConfig
- type OtelConfig
- type RevProxyConfig
- type TracerConfig
Constants ¶
View Source
const Timeout = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
func ExchangeCommand ¶
func InitCommands ¶
func RevProxyCommand ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Exchange *ExchaneConfig `mapstructure:"exchange"` RevProxy *RevProxyConfig `mapstructure:"revproxy"` Otel *OtelConfig `mapstructure:"otel"` }
type ExchaneConfig ¶
type MeterConfig ¶
type OtelConfig ¶
type OtelConfig struct { Meter *MeterConfig `mapstructure:"meter"` Tracer *TracerConfig `mapstructure:"tracer"` ServiceName string `mapstructure:"service_name"` }
type RevProxyConfig ¶
type RevProxyConfig struct { ConnAPI *bridge.Config `mapstructure:"conn_api"` Service revconproxy.Config }
type TracerConfig ¶
type TracerConfig struct {
Collector string `mapstructure:"collector"`
}
tracer:
agent: "jaeger:6831" sampler:
type: "const" param: 1
Click to show internal directories.
Click to hide internal directories.