services

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExchangeRate

func GetExchangeRate(ctx context.Context, url string) (*models.ExchangeRate, error)
Solicita para o server a cotação

Caso a resposta seja erro (status code >= 400) gera um erro personalizado indicando o status code e a mensagem de erro obtida se ela existir.

func StoreFile

func StoreFile(filename string, exchange *models.ExchangeRate) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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