config

package
v0.0.0-...-7bf8d03 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 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 App

type App struct {
	Name            string
	Env             string
	Host            string
	Port            string
	SessionLifetime string
}

App holds the application configuration.

type Config

type Config struct {
	App *App
	DB  *DB
}

Config holds the application configuration.

func New

func New(getEnv func(string) string) (*Config, error)

New returns a new Config instance.

type DB

type DB struct {
	Type     string
	Host     string
	Port     string
	User     string
	Password string
	Name     string
}

DB holds the database configuration.

Jump to

Keyboard shortcuts

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