lib

package
v0.0.0-...-3abfa60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

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 MongoClientConfig struct {
	Port                  int
	Host                  string
	RequestTimeoutSeconds int
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL