Documentation
¶
Index ¶
- Variables
- func AMQP() amqpx.Configs
- func Actuator() *actuatorx.Config
- func Consul() consulx.Configs
- func Database() databasex.Configs
- func ETCD() etcdx.Configs
- func ElasticSearch() elasticsearchx.Configs
- func GrpcClient() grpcx.ClientConfigs
- func GrpcServer() *grpcx.ServerConfig
- func Kafka() kafkax.Configs
- func Metric() *otelx.MetricConfig
- func Mongo() mongox.Configs
- func Nacos() nacosx.Configs
- func Redis() redisx.Configs
- func Trace() *otelx.TraceConfig
- type Configuration
- type EnvConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Provider = wire.NewSet( Env, Nacos, Gin, GrpcServer, GrpcClient, Actuator, Kafka, AMQP, Trace, Metric, Redis, Database, Mongo, ElasticSearch, Consul, ETCD, )
Functions ¶
func ElasticSearch ¶
func ElasticSearch() elasticsearchx.Configs
func GrpcClient ¶
func GrpcClient() grpcx.ClientConfigs
func GrpcServer ¶
func GrpcServer() *grpcx.ServerConfig
func Metric ¶
func Metric() *otelx.MetricConfig
func Trace ¶
func Trace() *otelx.TraceConfig
Types ¶
type Configuration ¶
type Configuration struct { Env *EnvConfig `mapstructure:"env" json:"env" yaml:"env"` Actuator *actuatorx.Config `mapstructure:"actuator" json:"actuator" yaml:"actuator"` Nacos nacosx.Configs `mapstructure:"nacos" json:"nacos" yaml:"nacos"` GrpcServer *grpcx.ServerConfig `mapstructure:"grpc_server" json:"grpc_server" yaml:"grpc_server"` GrpcClient grpcx.ClientConfigs `mapstructure:"grpc_client" json:"grpc_client" yaml:"grpc_client"` Trace *otelx.TraceConfig `mapstructure:"trace" json:"trace" yaml:"trace"` Metric *otelx.MetricConfig `mapstructure:"metric" json:"metric" yaml:"metric"` AMQP amqpx.Configs `mapstructure:"amqp" json:"amqp" yaml:"amqp"` Kafka kafkax.Configs `mapstructure:"kafka" json:"kafka" yaml:"kafka"` Redis redisx.Configs `mapstructure:"redis" json:"redis" yaml:"redis"` Database databasex.Configs `mapstructure:"database" json:"database" yaml:"database"` Mongo mongox.Configs `mapstructure:"mongo" json:"mongo" yaml:"mongo"` ElasticSearch elasticsearchx.Configs `mapstructure:"elastic_search" json:"elastic_search" yaml:"elastic_search"` Consul consulx.Configs `mapstructure:"consul" json:"consul" yaml:"consul"` ETCD etcdx.Configs `mapstructure:"etcd" json:"etcd" yaml:"etcd"` }
var AppConf Configuration
type EnvConfig ¶
type EnvConfig struct { Name string `mapstructure:"SERVICE_NAME" json:"SERVICE_NAME" yaml:"SERVICE_NAME"` Namespace string `mapstructure:"SERVICE_NAMESPACE" json:"SERVICE_NAMESPACE" yaml:"SERVICE_NAMESPACE"` ID string `mapstructure:"SERVICE_ID" json:"SERVICE_ID" yaml:"SERVICE_ID"` Version string `mapstructure:"SERVICE_VERSION" json:"SERVICE_VERSION" yaml:"SERVICE_VERSION"` }
Click to show internal directories.
Click to hide internal directories.