command
module
Version:
v0.0.0-...-d2d52dd
Opens a new window with list of versions in this module.
Published: May 25, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
ΒΆ
Client Server dollar quote
πΈ This repository is a project for requesting the dollar quote.

Requirements
- Golang
- Containers (Podmand or Docker)
- Database SQLite
Explain the Project - Challenge
Client:
- Will make requests to receive the USD exchange rate
- Maximum timeout of 300ms to receive the exchange rate
- Should save the exchange rates in a file named "cotacao.txt" (Create a folder)
- Will receive only the JSON bind
Server:
- The server will make requests to the API
- You will receive a JSON response
- Will record the USD exchange rates in an SQLite database
- The maximum timeout to call the API is 200ms
- Maximum timeout to persist data in the database is 10ms
- Endpoint:
/cotacao
- Port:
8080
All three contexts should log an error if the execution time is insufficient.
Running
client-server-api-dollar/
βββ client/
β βββ client.go
βββ server/
β βββ server.go
βββ main.go
βββ docker-compose.yaml
βββ Dockerfile
Documentation
ΒΆ
There is no documentation for this package.
Source Files
ΒΆ
Directories
ΒΆ
Click to show internal directories.
Click to hide internal directories.