conf

package
v0.0.0-...-5037bb9 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() error

Types

type Config

type Config struct {
	*ConfigServer
	*ConfigToken
	*ConfigDB
	Logger *log.Logger
}

func NewConfig

func NewConfig() *Config

type ConfigDB

type ConfigDB struct {
	Host           string
	Port           string
	Username       string
	DBName         string
	DbPassword     string
	DbRootPassword string
}

type ConfigServer

type ConfigServer struct {
	Port string
}

type ConfigToken

type ConfigToken struct {
	AccessSecret           string
	RefreshSecret          string
	AccessLifetimeMinutes  int
	RefreshLifetimeMinutes int
}

Jump to

Keyboard shortcuts

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