rpc

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 StartDRPCServer

func StartDRPCServer(db *pgxpool.Pool, cache redis.UniversalClient)

Types

type RatesDRPCServer

type RatesDRPCServer struct {
	pb.DRPCRatesServiceServer
	Cache redis.UniversalClient
	DB    *pgxpool.Pool
}

func (*RatesDRPCServer) GetAllRates

func (s *RatesDRPCServer) GetAllRates(ctx context.Context, req *pb.RateRequest) (*pb.RateListResponse, error)

GetAllRates returns all rates for the given currency.

func (*RatesDRPCServer) StreamRates

StreamRates streams real-time rate updates for the requested currencies.

Jump to

Keyboard shortcuts

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