config

package
v0.0.0-...-183713d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Default = `` /* 150-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database Database `mapstructure:"db"`
	JWT      JWT      `mapstructure:"jwt"`
}

func Read

func Read() Config

type Database

type Database struct {
	Host     string `mapstructure:"host"`
	Port     string `mapstructure:"port"`
	User     string `mapstructure:"user"`
	DBName   string `mapstructure:"dbname"`
	Password string `mapstructure:"password"`
	SSLmode  string `mapstructure:"sslmode"`
}

func (Database) Cstring

func (d Database) Cstring() string

type JWT

type JWT struct {
	Secret     string `mapstructure:"secret"`
	Expiration int    `mapstructure:"exp"`
}

Jump to

Keyboard shortcuts

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