Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EnvPrefix 是環境變數的前墬 EnvPrefix string )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Env string Mode string Logs []LogSetting Databases []Database Temporal struct { Address string } Redis struct { ClusterMode bool `mapstructure:"cluster_mode"` Addresses []string Password string MaxRetries int `mapstructure:"max_retries"` PoolSizePerNode int `mapstructure:"pool_size_per_node"` DB int } Jaeger struct { AdvertiseAddr string `mapstructure:"advertise_addr"` } Frontend struct { HTTPBind string `mapstructure:"http_bind"` HTTPAdvertiseAddr string `mapstructure:"http_advertise_addr"` } Event struct { GRPCBind string `mapstructure:"grpc_bind"` GRPCAdvertiseAddr string `mapstructure:"grpc_advertise_addr"` } Wallet struct { GRPCBind string `mapstructure:"grpc_bind"` GRPCAdvertiseAddr string `mapstructure:"grpc_advertise_addr"` } // contains filtered or unexported fields }
Configuration 用來代表 config 設定物件
func (Configuration) InitLogger ¶
func (cfg Configuration) InitLogger(appID string)
func (Configuration) Path ¶
func (cfg Configuration) Path(path ...string) string
func (Configuration) TracerProvider ¶
func (cfg Configuration) TracerProvider(appID string) (*tracesdk.TracerProvider, error)
TracerProvider returns an OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The returned TracerProvider will also use a Resource configured with all the information about the application.
Click to show internal directories.
Click to hide internal directories.