config

package
v0.0.0-...-4883ec9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitENV

func InitENV(filename string) error

Types

type Config

type Config struct {
	Server struct {
		Host string
		Port int
	}

	Auth struct {
		TokenTTL   time.Duration
		RefreshTTL time.Duration
	}

	Minio struct {
		Endpoint string
		Bucket   string
	}

	Hash struct {
		Salt   string
		Secret string
	}

	DB postgres.DBConfig
}

func New

func New(directory, filename string) (*Config, error)

Jump to

Keyboard shortcuts

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