configs

package
v0.0.0-...-80b836d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configurations []byte

Functions

This section is empty.

Types

type App

type App struct {
	Host               string
	Port               int
	Debug              bool
	CorsOrigins        []string
	CorsMaxAge         int
	GoogleClientId     string
	GoogleClientSecret string
	GoogleRedirectUrl  string
}

type Config

type Config struct {
	Postgres *Postgres
	App      *App
}

func NewConfig

func NewConfig() (*Config, error)

type Postgres

type Postgres struct {
	Host            string
	Port            int
	Username        string
	Password        string
	DB              string
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxIdleTime int
}

Jump to

Keyboard shortcuts

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