config

package
v0.0.0-...-00b94a8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 5 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   *Server
	Database *Database
}

func Initialize

func Initialize(appVersion string) (config *Configuration, err error)

type Database

type Database struct {
	Host         string
	Port         string
	User         string
	Password     string
	DatabaseName string
	LogQueries   bool
	SSLMode      string
	Db           *gorm.DB
}

type Server

type Server struct {
	Port              string
	Debug             bool
	ReadTimeout       int
	WriteTimeout      int
	RequestsPerSecond int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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