exchange

package
v0.0.0-...-fb81480 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package exchange provides functionality to interact with the exchange database. It contains methods for fetching exchange rates from the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	MainAPI
}

Exchange struct implements MainAPI and provides exchange-related services.

func New

func New(db database.DataBase) *Exchange

New creates a new Exchange instance with the provided database connection.

type MainAPI

type MainAPI interface {
	GetExchangeRates(context.Context) (*gen.ExchangeRatesResponse, error)
}

MainAPI defines the main interface for exchange operations.

Jump to

Keyboard shortcuts

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