Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServiceName string `mapstructure:"serviceName"` Logger *logger.Config `mapstructure:"logger"` KafkaTopics KafkaTopics `mapstructure:"kafkaTopics"` GRPC GRPC `mapstructure:"grpc"` Postgresql *postgres.Config `mapstructure:"postgres"` Kafka *kafkaClient.Config `mapstructure:"kafka"` Mongo *mongodb.Config `mapstructure:"mongo"` Redis *redis.Config `mapstructure:"redis"` MongoCollections MongoCollections `mapstructure:"mongoCollections"` Probes probes.Config `mapstructure:"probes"` ServiceSettings ServiceSettings `mapstructure:"serviceSettings"` Jaeger *tracing.Config `mapstructure:"jaeger"` }
func InitConfig ¶
type KafkaTopics ¶
type KafkaTopics struct { ProductCreated kafkaClient.TopicConfig `mapstructure:"productCreated"` ProductUpdated kafkaClient.TopicConfig `mapstructure:"productUpdated"` ProductDeleted kafkaClient.TopicConfig `mapstructure:"productDeleted"` }
type MongoCollections ¶
type MongoCollections struct {
Products string `mapstructure:"products"`
}
type ServiceSettings ¶
type ServiceSettings struct {
RedisProductPrefixKey string `mapstructure:"redisProductPrefixKey"`
}
Click to show internal directories.
Click to hide internal directories.