config

package
v0.0.0-...-0b0b9b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeAppConfig

func InitializeAppConfig() error

func NewMongoContext

func NewMongoContext() (context.Context, context.CancelFunc)

Types

type Config

type Config struct {
	PORT                       int
	MONGO_HOST                 string
	MONGO_PORT                 string
	MONGO_USERNAME             string
	MONGGO_PASSWORD            string
	MONGO_DATABASE             string
	MONGO_POOL_MIN             int
	MONGO_POOL_MAX             int
	MONGO_MAX_IDLE_TIME_SECOND int
}
var AppConfig Config

type ConfigMongo

type ConfigMongo struct {
	MONGO_HOST                 string
	MONGO_PORT                 string
	MONGO_USERNAME             string
	MONGGO_PASSWORD            string
	MONGO_DATABASE             string
	MONGO_POOL_MIN             int
	MONGO_POOL_MAX             int
	MONGO_MAX_IDLE_TIME_SECOND int
}

func (*ConfigMongo) InitializeMongo

func (configMongo *ConfigMongo) InitializeMongo() (*mongo.Database, error)

Jump to

Keyboard shortcuts

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