Documentation
¶
Overview ¶
Package unirategoweb is the module root for unirate-go-web: ready-made HTTP handler adapters that expose the UniRate API (https://unirateapi.com) — free currency exchange rates, currency conversion, supported-currency listing, and VAT rates — through the three most popular Go web frameworks.
The module has no exported symbols at its root; import one of the framework sub-packages instead:
github.com/UniRate-API/unirate-go-web/gin // Gin adapter (unirategin) github.com/UniRate-API/unirate-go-web/echo // Echo adapter (unirateecho) github.com/UniRate-API/unirate-go-web/fiber // Fiber adapter (uniratefiber)
Each sub-package offers a Register function that mounts four routes — /rate, /convert, /currencies, /vat — onto the framework's router, backed by a UniRate client. See each sub-package's docs for details.
Metadata:
Version: 0.1.0
Author: Unirate Team
License: MIT
Repository: https://github.com/UniRate-API/unirate-go-web
Keywords: unirate, exchange-rates, currency, forex, vat, fintech,
gin, echo, fiber
Directories
¶
| Path | Synopsis |
|---|---|
|
Package unirateecho exposes the UniRate API as a set of Echo HTTP handlers.
|
Package unirateecho exposes the UniRate API as a set of Echo HTTP handlers. |
|
examples
|
|
|
echo
command
Runnable Echo server exposing the UniRate routes.
|
Runnable Echo server exposing the UniRate routes. |
|
fiber
command
Runnable Fiber server exposing the UniRate routes.
|
Runnable Fiber server exposing the UniRate routes. |
|
gin
command
Runnable Gin server exposing the UniRate routes.
|
Runnable Gin server exposing the UniRate routes. |
|
Package uniratefiber exposes the UniRate API as a set of Fiber HTTP handlers.
|
Package uniratefiber exposes the UniRate API as a set of Fiber HTTP handlers. |
|
Package unirategin exposes the UniRate API as a set of Gin HTTP handlers.
|
Package unirategin exposes the UniRate API as a set of Gin HTTP handlers. |
|
internal
|
|
|
httperr
Package httperr centralises the mapping from UniRate client errors to an HTTP status code and a JSON-serialisable error body.
|
Package httperr centralises the mapping from UniRate client errors to an HTTP status code and a JSON-serialisable error body. |
|
params
Package params holds the shared query-parameter parsing used by all three framework adapters, so request handling stays identical across gin, echo, and fiber.
|
Package params holds the shared query-parameter parsing used by all three framework adapters, so request handling stays identical across gin, echo, and fiber. |
|
unirate
Package unirate is a minimal vendored copy of the official UniRate Go client (github.com/UniRate-API/unirate-api-go), embedded here so the framework adapters build hermetically without resolving an unpublished module tag over the network.
|
Package unirate is a minimal vendored copy of the official UniRate Go client (github.com/UniRate-API/unirate-api-go), embedded here so the framework adapters build hermetically without resolving an unpublished module tag over the network. |
Click to show internal directories.
Click to hide internal directories.