config

package
v0.0.0-...-01c8ee1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 6 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
	GDrive GDriveConfig
	GIN    GINConfig
	DB     postgres.DBConfig
}

func New

func New() *Config

type GDriveConfig

type GDriveConfig struct {
	Credentials string
}

type GINConfig

type GINConfig struct {
	Mode string
}

type HTTPConfig

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

Jump to

Keyboard shortcuts

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