config

package
v0.0.0-...-4f50f5e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package config reads the config from the config.yaml file in the project root.

If the file is not present it will ask the user for the

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reset

func Reset()

Reset for deleting the .blog.yaml file from home directory

Types

type App

type App struct {
	Port        int
	Environment string
	Production  bool
	DB          *DB
	Logger      *Logger
}

func Get

func Get() *App

type DB

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

type Logger

type Logger struct {
}

Jump to

Keyboard shortcuts

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