configs

package
v0.0.0-...-92a5e9f Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) 2023 Lucas de Ataides <ldatb@icloud.com>

SPDX-License-Identifier: MIT

Copyright (c) 2023 Lucas de Ataides <ldatb@icloud.com>

SPDX-License-Identifier: MIT

Index

Constants

View Source
const (
	DEFAULT_API_PORT    = "3000"
	DEFAULT_LOG_LEVEL   = "info"
	DEFAULT_LOG_OUTPUT  = ""
	DEFAULT_DB_HOST     = "localhost"
	DEFAULT_DB_PORT     = "5432"
	DEFAULT_DB_USER     = "gorm"
	DEFAULT_DB_PASSWORD = "S3cretP@ss"
	DEFAULT_DB_NAME     = "api_db"
)

Defaults values for the configs

Variables

This section is empty.

Functions

func AppConfig

func AppConfig() models.Configs

Load the app's configurations with Viper

func FiberConfig

func FiberConfig() fiber.Config

Configurations for the Fiber server

func GetDatabaseConfigs

func GetDatabaseConfigs(allConfigs models.Configs) models.DatabaseConfigs

From all the configs, fetch only those related to the databse

Types

This section is empty.

Jump to

Keyboard shortcuts

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