infrastructures

package
v0.0.0-...-8a84ea6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddresFromViaCep

func GetAddresFromViaCep(cep string) (models.Address, error)

GetAddresFromViaCep -> search address in viacep

func GetDatabaseConnection

func GetDatabaseConnection() *gorm.DB

GetDatabaseConnection -> Retrieve reference for database using package gorm

func PublishMessage

func PublishMessage(exchangeName string, message []byte) error

PublishMessage -> send message to broker

Types

type UserCustomClaims

type UserCustomClaims struct {
	*jwt.StandardClaims
	IsAdmin bool   `json:"is_admin"`
	Email   string `json:"email"`
}

UserCustomClaims -> custom claims for golang-jwt

Jump to

Keyboard shortcuts

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