config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 2 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 {
	Server   ServerConfig   `json:"server"`
	DataBase DatabaseConfig `json:"dataBase"`
}

func Init

func Init(path string) (conf *Configuration, err error)

Init load configuration file

type DatabaseConfig

type DatabaseConfig struct {
	DriverName   string `json:"driverName"`
	URL          string `json:"url"`
	MaxOpenConns int    `json:"maxOpenConns"`
}

DatabaseConfig set type of database management system

the url of connection string, max amount of
connections, tables, sizes of page  of gamers
and users

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