config

package
v0.0.0-...-d050570 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database struct {
		Host     string `json:"host" envconfig:"DATABASE_HOST"`
		Port     string `json:"port" envconfig:"DATABASE_PORT"`
		Username string `json:"username" envconfig:"DATABASE_USERNAME"`
		Password string `json:"password" envconfig:"DATABASE_PASSWORD"`
		Name     string `json:"name" envconfig:"DATABASE_NAME"`
	} `json:"database"`
}

func Init

func Init() (*Config, error)

Jump to

Keyboard shortcuts

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