config

package
v0.0.0-...-888d963 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Database DatabaseConfig `json:"database"`
	Server   ServerConfig   `json:"server"`
}

func GetConfig

func GetConfig() *Configuration

type DatabaseConfig

type DatabaseConfig struct {
	DbHost     string `json:"db_host"`
	DbPort     string `json:"db_port"`
	DbName     string `json:"db_name"`
	DbUsername string `json:"db_username"`
	DbPassword string `json:"db_password"`
}

type ServerConfig

type ServerConfig struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

Jump to

Keyboard shortcuts

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