context

package
v0.0.0-...-9a10ecf Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	MongoDBConfig *MongoConfig
	APIPort       int
}

APIConfig represents API configuration.

func GetAPIConfig

func GetAPIConfig() *APIConfig

GetAPIConfig returns the instance of an APIConfig.

type MongoConfig

type MongoConfig struct {
	Address      string
	DatabaseName string
	Timeout      time.Duration
	Username     string
	Password     string
}

MongoConfig represents MongoDB configuration.

Jump to

Keyboard shortcuts

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