util

package
v0.0.0-...-ead45a5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Swagger

func Swagger()

Types

type Env

type Env struct {
	ENVIRONMENT string `mapstructure:"ENVIRONMENT"`

	DBCONNECTION string `mapstructure:"DB_CONNECTION"`

	DBHOST  string `mapstructure:"DB_HOST"`
	DBPORT  string `mapstructure:"DB_PORT"`
	DBUSER  string `mapstructure:"DB_USERNAME"`
	DBPASS  string `mapstructure:"DB_PASSWORD"`
	DBNAME  string `mapstructure:"DB_NAME"`
	SSLMODE string `mapstructure:"SSL_MODE"`

	AUTH_EMAIL string `mapstructure:"AUTH_EMAIL"`

	PORT       string `mapstructure:"PORT"`
	REMOTEHOST string `mapstructure:"REMOTE_HOST"`
}

func LoadEnv

func LoadEnv(path string) *Env

type ErrorCode

type ErrorCode string
const (
	SchoolAlredayExists ErrorCode = "ups, esta escola já existe"
	NotFoundSchool      ErrorCode = "ups, esta escola já existe"
	InternalServerError ErrorCode = "ups, houve um erro interno tente novamente mais tarde"
)

Directories

Path Synopsis
pkg/util/upload.go
pkg/util/upload.go

Jump to

Keyboard shortcuts

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