util

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SECRET_KEY_JWT string
View Source
var TIME_EXPIRE_TOKEN int64

Functions

func ConfigCors

func ConfigCors(w *http.ResponseWriter)

///////////////////////////////////////////////////////////////////////////////////// Descripcion: habilitamos acceso CORS

/////////////////////////////////////////////////////////////////////////////////////

func EnableCors

func EnableCors(next http.Handler) http.Handler

func GenerarJWT

func GenerarJWT() (string, error)

Creamos Token

func VerificarJWT

func VerificarJWT(tokenString string) error

Verificamos Token

Types

type AppConfigProperties

type AppConfigProperties map[string]string

func ReadPropertiesFile

func ReadPropertiesFile(filename string) (AppConfigProperties, error)

type CodigoRes

type CodigoRes struct {
	Data   string `json:"data"`
	Codigo int    `json:"codigo"` //codigo internos
}

Jump to

Keyboard shortcuts

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