config

package
v0.0.0-...-991bd03 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Environment string
	Port        int
	URL         string
}

type Config

type Config struct {
	App      App
	JWT      JWT
	Postgres Postgres
	Mongo    Mongo
}
var GlobalConfig Config

func New

func New() *Config

type JWT

type JWT struct {
	Secret string
}

type Mongo

type Mongo struct {
	Host     string
	Port     string
	Username string
	Password string
	Database string
}

type Postgres

type Postgres struct {
	Host     string
	Port     string
	User     string
	Password string
	Database string
	SSLMode  string
	URI      string
}

Jump to

Keyboard shortcuts

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