config

package
v0.0.0-...-11b9e55 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigs

func LoadConfigs(configPath string)

Types

type NoctiLucaAuthConf

type NoctiLucaAuthConf struct {
	JWT NoctiLucaAuthJwtConf `koanf:"jwt"`
}

type NoctiLucaAuthJwtConf

type NoctiLucaAuthJwtConf struct {
	Enabled bool   `koanf:"enabled"`
	Key     string `koanf:"key"`
	Issuer  string `koanf:"issuer"`
	// Timeout of the JWT in seconds
	Timeout int `koanf:"timeout"`
	// Refresh timeout of the JWT in seconds
	Refresh int `koanf:"refresh"`
}

type NoctiLucaConf

type NoctiLucaConf struct {
	DSN   string             `koanf:"dsn"`
	Serve NoctiLucaServeConf `koanf:"serve"`
	Auth  NoctiLucaAuthConf  `koanf:"auth"`
}
var NlConfig *NoctiLucaConf

type NoctiLucaServeConf

type NoctiLucaServeConf struct {
	Host string `koanf:"host"`
	Port string `koanf:"port"`
}

Jump to

Keyboard shortcuts

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