consumers

package
v0.0.0-...-fca3b85 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoServiceClient

type CryptoServiceClient interface {
	Transfer(ctx context.Context, in *crypto_service.TransferRequest, opts ...grpc.CallOption) (*crypto_service.TransferResponse, error)
}

type Storage

type Storage interface {
	ListInvoices(ctx context.Context, filter storage.ListInvoicesFilter, pagination postgres.Pagination) ([]*models.Invoice, error)
	UpdateInvoice(ctx context.Context, invoice *models.Invoice) (*models.Invoice, error)
}

type WalletBalanceConsumer

type WalletBalanceConsumer struct {
	// contains filtered or unexported fields
}

func NewWalletBalanceConsumer

func NewWalletBalanceConsumer(
	storage Storage,
	cryptoServiceClient CryptoServiceClient,
) *WalletBalanceConsumer

func (*WalletBalanceConsumer) Consume

func (c *WalletBalanceConsumer) Consume(ctx context.Context, msg []byte) error

Jump to

Keyboard shortcuts

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