configuration

package
v0.0.0-...-4a5e4cf Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = NewConfiguration()

Global config - thread safe and accessible from all packages

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	HttpHostAndPort  string
	HttpsHostAndPort string
	HttpsUsage       bool
	Url              string
	HttpsUrl         string
	UseLetsEncrypt   bool

	Database Database `json:"database"`
	Logger   Logger   `json:"logger"`
}

Configuration: settings that are neccesary for server configuration

func NewConfiguration

func NewConfiguration() *Configuration

type Database

type Database struct {
	DSN string `json:"DSN,omitempty"`
}

type Logger

type Logger struct {
	JSON     bool   `json:"json"`
	FileName string `json:"file_name"`
}

Jump to

Keyboard shortcuts

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