conf

package
v0.0.0-...-3263382 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf = &Config{}

Functions

func Init

func Init()

Types

type App

type App struct {
	UserPwPepper       string
	HmacSecretKey      string
	UserKey            string
	RememberTokenBytes int
	AuthKeyBytes       int
	CsrfSecure         bool
}

type Config

type Config struct {
	App      App
	Database Database
	Server   Server
}

type Database

type Database struct {
	Type     string
	User     string
	Password string
	Host     string
	Name     string
	LogMode  bool
}

type Server

type Server struct {
	RunMode  string
	HttpPort int
}

Jump to

Keyboard shortcuts

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