config

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: LGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceBindAddress         string
	ServiceBindHost            string
	ServicePort                int
	ServiceKey                 string
	TLSRootCert                string
	TLSCert                    string
	TLSKey                     string
	LoversEar                  string
	Interval                   int
	JwtExpiration              int
	AccessTokenPrivateKeyPath  string
	AccessTokenPublicKeyPath   string
	RefreshTokenPrivateKeyPath string
	RefreshTokenPublicKeyPath  string
	DB                         *DBConfig
}

func DefaultConfig

func DefaultConfig() *Config

func ParseConfig

func ParseConfig(cfgFile string) *Config

type DBConfig

type DBConfig struct {
	Dialect  string
	Host     string
	Port     int
	Username string
	Password string
	Name     string
	Charset  string
}

Jump to

Keyboard shortcuts

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