config

package
v0.0.0-...-0835840 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckENV

func CheckENV() bool

Types

type Config

type Config struct {
	Server   *Server
	DataBase *DataBase
}

Config - application configuration

func DefaultConfiguration

func DefaultConfiguration() *Config

func ReadConfiguration

func ReadConfiguration() (*Config, error)

type DataBase

type DataBase struct {
	PostgresIP    string
	PostgresPort  uint
	PostgresDB    string
	PostgresUser  string
	PostgresPass  string
	DataBaseInit  bool
	DataBaseDirty bool
	ForceVersion  uint
}

DataBase - database configuration

type Server

type Server struct {
	ServerAddr string
	ServerPort uint
	LogLevel   string
}

Server - server_errors configuration

Jump to

Keyboard shortcuts

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