config

package
v0.0.0-...-fadc641 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = GeneralConfig{
	DB: DBConfig{
		DatabaseHost: "mongodb://localhost:27017",
		DatabaseName: "familiarflepsite3000",
	},
	Auth: AUTHConfig{
		Issuer:        "familiarflepsite",
		SigningKey:    []byte("somekey"),
		ValidDuration: time.Hour * 1,
	},
}

Functions

This section is empty.

Types

type AUTHConfig

type AUTHConfig struct {
	Issuer        string
	SigningKey    []byte
	ValidDuration time.Duration
}

type DBConfig

type DBConfig struct {
	DatabaseHost string
	DatabaseName string
}

type GeneralConfig

type GeneralConfig struct {
	DB   DBConfig
	Auth AUTHConfig
}

Jump to

Keyboard shortcuts

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