services

package
v0.0.0-...-b85db87 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheAndArchive

func CacheAndArchive(ctx context.Context, app *infrastructure.AppState, key string, id int, curr string,
	resp *pb.RateResponse, rates infrastructure.ProcessedRates)

func FetchCantorInfo

func FetchCantorInfo(ctx context.Context, db *pgxpool.Pool, id int) (infrastructure.CantorInfo, error)

func GetPreviousRate

func GetPreviousRate(db *pgxpool.Pool, id int, currency string) (int64, error)

func SaveToArchive

func SaveToArchive(db *pgxpool.Pool, cantorID int, currency string, buyRate, sellRate int64)

func UpdateCacheAndNotify

func UpdateCacheAndNotify(ctx context.Context, app *infrastructure.AppState, cantorID int, curr string, rates infrastructure.ProcessedRates)

Types

This section is empty.

Jump to

Keyboard shortcuts

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