Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCors ¶
type ConfigCors struct {
AllowedOrigins []string
}
type ConfigSchema ¶
type ConfigSchema struct { Port int Host string DefaultRequestTimeoutSeconds int Logger goutils.LoggerConfig Cors ConfigCors MongoDb MongoClientConfig }
ConfigSchema define a struct to load our config into
func LoadConfig ¶
func LoadConfig() ConfigSchema
type MongoClientConfig ¶
type Resources ¶
type Resources struct { Log *logrus.Logger Config *ConfigSchema HTTPClient *circuit.HTTPClient }
Resources type is a bundle of databases, loggers and other things that gets passed to every lib function, after the context object.
Click to show internal directories.
Click to hide internal directories.