context

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(config *Config) (*mongo.Database, error)

Types

type Config

type Config struct {
	AppName string

	ServerBind string
	ServerPort string

	DBHost string
	DBPort string
	DBName string

	TLSUse      bool
	TLSCert     string
	TLSCertAuth string
	TLSKey      string

	DebugMode bool
	LogFormat string
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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