config

package
v0.0.0-...-0820f46 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 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 AppConfig

type AppConfig struct {
	Environment Environment
	Logger      *log.Logger
	Port        uint16
	DbConfig    *DbConfig
}

type DbConfig

type DbConfig struct {
	Hostname          string
	Port              string
	SslDisabled       bool
	User              string
	Pass              string
	DbName            string
	ConnectionTimeout time.Duration
}

type Environment

type Environment uint8
const (
	Development Environment = iota
	Production
)

Jump to

Keyboard shortcuts

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