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"` GRPC GRPC `mapstructure:"grpc"` Mongo *mongodb.Config `mapstructure:"mongo"` MongoCollections MongoCollections `mapstructure:"mongoCollections"` Probes probes.Config `mapstructure:"probes"` Jaeger *tracing.Config `mapstructure:"jaeger"` EventStoreConfig eventstroredb.EventStoreConfig `mapstructure:"eventStoreConfig"` Subscriptions Subscriptions `mapstructure:"subscriptions"` Elastic elasticsearch.Config `mapstructure:"elastic"` ElasticIndexes ElasticIndexes `mapstructure:"elasticIndexes"` Http Http `mapstructure:"http"` }
func InitConfig ¶
type ElasticIndexes ¶
type ElasticIndexes struct {
Orders string `mapstructure:"orders" validate:"required"`
}
type Http ¶
type Http struct { Port string `mapstructure:"port" validate:"required"` Development bool `mapstructure:"development"` BasePath string `mapstructure:"basePath" validate:"required"` OrdersPath string `mapstructure:"ordersPath" validate:"required"` DebugErrorsResponse bool `mapstructure:"debugErrorsResponse"` IgnoreLogUrls []string `mapstructure:"ignoreLogUrls"` }
type MongoCollections ¶
type MongoCollections struct {
Orders string `mapstructure:"orders" validate:"required"`
}
type Subscriptions ¶
type Subscriptions struct { PoolSize int `mapstructure:"poolSize" validate:"required,gte=0"` OrderPrefix string `mapstructure:"orderPrefix" validate:"required,gte=0"` MongoProjectionGroupName string `mapstructure:"mongoProjectionGroupName" validate:"required,gte=0"` ElasticProjectionGroupName string `mapstructure:"elasticProjectionGroupName" validate:"required,gte=0"` }
Click to show internal directories.
Click to hide internal directories.