models

package
v0.0.0-...-b30aab1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorResponseJson

func ErrorResponseJson(err error) []byte

Monta o JSON para resposta padrão de erro

Types

type Conversion

type Conversion struct {
	ExchangeRate ExchangeRate `json:"USDBRL"`
}

Modelo auxiliar para extração dos dados da API de terceiro

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

Modelo auxiliar para gerar uma resposta padrão de erro

type ExchangeRate

type ExchangeRate struct {
	Id  string `json:"-"`
	Bid string `json:"bid"`
}

Modelo da taxa de conversão

Jump to

Keyboard shortcuts

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