config

package
v0.0.0-...-a6764fa Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 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 Auth

type Auth struct {
	HashCost   int           `mapstructure:"hash_cost"`
	SigningKey []byte        `mapstructure:"signing_key"`
	TokenTTL   time.Duration `mapstructure:"token_ttl"`
}

type Config

type Config struct {
	Port     string
	Auth     *Auth
	Postgres *Postgres
}

func Init

func Init() (*Config, error)

type Postgres

type Postgres struct {
	Host     string
	User     string
	Password string
	DB       string
	Port     string
}

Jump to

Keyboard shortcuts

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