config

package
v0.0.0-...-82113cf Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	AccessTokenTTL  time.Duration
	RefreshTokenTTL time.Duration
	Salt            string
	Secret          string
}

type Config

type Config struct {
	HTTP HTTPConfig
	Auth AuthConfig
	GIN  GINConfig
	DB   postgres.DBConfig
}

func New

func New() *Config

type GINConfig

type GINConfig struct {
	Mode string
}

type HTTPConfig

type HTTPConfig struct {
	Host            string
	Port            string
	ReadTimeout     time.Duration
	WriteTimeout    time.Duration
	ShutdownTimeout time.Duration
}

Jump to

Keyboard shortcuts

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