config

package
v0.0.0-...-4604430 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

func IsProduction

func IsProduction() bool

Types

type AppConf

type AppConf struct {
	Server    *ServerConf    `yaml:"server"`
	Datastore *DatastoreConf `yaml:"datastore"`
}

type Config

type Config struct {
	App *AppConf `yaml:"App"`
}

type DatastoreConf

type DatastoreConf struct {
	Mongo *MongoConf `yaml:"mongo"`
}
var Datastore *DatastoreConf

type HttpConf

type HttpConf struct {
	BindIp      string `yaml:"bindIp"`
	BindPort    int    `yaml:"bindPort"`
	ContextPath string `yaml:"contextPath"`
}

type MongoConf

type MongoConf struct {
	Url      string `yaml:"url"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type ServerConf

type ServerConf struct {
	Http *HttpConf `yaml:"http"`
}
var Server *ServerConf

Jump to

Keyboard shortcuts

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