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 *logging.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 { UserCreated kafkaClient.TopicConfig `mapstructure:"userCreated"` UserUpdated kafkaClient.TopicConfig `mapstructure:"userUpdated"` UserDeleted kafkaClient.TopicConfig `mapstructure:"userDeleted"` GroupCreated kafkaClient.TopicConfig `mapstructure:"groupCreated"` GroupUpdated kafkaClient.TopicConfig `mapstructure:"groupUpdated"` GroupDeleted kafkaClient.TopicConfig `mapstructure:"groupDeleted"` MembershipCreated kafkaClient.TopicConfig `mapstructure:"membershipCreated"` MembershipUpdated kafkaClient.TopicConfig `mapstructure:"membershipUpdated"` MembershipDeleted kafkaClient.TopicConfig `mapstructure:"membershipDeleted"` PasswordUpdated kafkaClient.TopicConfig `mapstructure:"passwordUpdated"` TokenBlacklisted kafkaClient.TopicConfig `mapstructure:"tokenBlacklisted"` }
type MongoCollections ¶
type MongoCollections struct { Users string `mapstructure:"users"` Groups string `mapstructure:"groups"` Memberships string `mapstructure:"memberships"` UserMemberships string `mapstructure:"userMemberships"` GroupMemberships string `mapstructure:"groupMemberships"` Blacklist string `mapstructure:"blacklist"` }
type ServiceSettings ¶
type ServiceSettings struct { RedisUserPrefixKey string `mapstructure:"redisUserPrefixKey"` RedisGroupPrefixKey string `mapstructure:"redisGroupPrefixKey"` RedisMembershipPrefixKey string `mapstructure:"redisMembershipPrefixKey"` RedisUserMembershipPrefixKey string `mapstructure:"redisUserMembershipPrefixKey"` RedisGroupMembershipPrefixKey string `mapstructure:"redisGroupMembershipPrefixKey"` RedisTokenPrefixKey string `mapstructure:"redisTokenPrefixKey"` JWTSalt string `mapstructure:"jwtSalt"` }
Click to show internal directories.
Click to hide internal directories.