config

package
v0.0.0-...-f60e707 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Url string
}

type Config

type Config struct {
	ApiConfig
	DbConfig
	TokenConfig
}

func NewConfig

func NewConfig() Config

type DbConfig

type DbConfig struct {
	DataSourceName string
}

type TokenConfig

type TokenConfig struct {
	Secret      string
	Time        uint32
	Memory      uint32
	KeyLen      uint32
	Parallelism uint8
	SignKey     *rsa.PrivateKey
	AccessExp   time.Duration
}

Jump to

Keyboard shortcuts

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