go_config

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 9 Imported by: 0

README

About

Simple Golang Library to use for configuring web application using Viper/Cobra. Intended for my personal projects to avoid recreating the same thing for each project. Uses environment variables to create the configuration, with help flags intended to make the configuration discoverable.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Domain   string
	ClientID string
	Secret   string
}

type Config

type Config struct {
	DBConfig   DBConfig
	AuthConfig AuthConfig
	LogLevel   int
}

func New

func New() (*Config, error)

type DBConfig added in v0.0.5

type DBConfig struct {
	DBConnection string
	DBType       string
}

Jump to

Keyboard shortcuts

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