client-server-api-dollar

command module
v0.0.0-...-d2d52dd Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README ΒΆ

Client Server dollar quote

πŸ’Έ This repository is a project for requesting the dollar quote.

Status

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 ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

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