config

package
v0.0.0-...-35e313c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigPath = getwd()
)

default configpath

Functions

func CreateConfig

func CreateConfig(config *Config)

CreateConfig create json configuration file

Types

type Config

type Config struct {
	DataBase dataBaseConfig `json:"dataBase,omitempty"`
	Server   serverConfig   `json:"server,omitempty"`
	CORS     cors           `json:"cors,omitempty"`
	Security security       `json:"security,omitempty"`
}

Config provides configuration to whole applicaiton

func GetConfig

func GetConfig(ConfigPath string) *Config

GetConfig get the configuration from json file

Jump to

Keyboard shortcuts

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