cmd

package
v0.0.0-...-5fac4bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 10 * time.Second

Variables

This section is empty.

Functions

func ExchangeCommand

func ExchangeCommand(cfgPath *string) *cobra.Command

func InitCommands

func InitCommands() *cobra.Command

func InitOtel

func InitOtel(ctx context.Context, cfg *OtelConfig) error

func RevProxyCommand

func RevProxyCommand(cfgPath *string) *cobra.Command

Types

type AppConfig

type AppConfig struct {
	Exchange *ExchaneConfig  `mapstructure:"exchange"`
	RevProxy *RevProxyConfig `mapstructure:"revproxy"`
	Otel     *OtelConfig     `mapstructure:"otel"`
}

type ExchaneConfig

type ExchaneConfig struct {
	CtrlAPI  *ctrlapi.Config    `mapstructure:"ctrl_api"`
	ConnAPI  *revconnapi.Config `mapstructure:"conn_api"`
	ProxyAPI *proxy.Config      `mapstructure:"proxy_server"`
}

type MeterConfig

type MeterConfig struct {
	Listen string `mapstructure:"listen"`
	Path   string `mapstructure:"path"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL