Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGetNetwork = errors.New("cannot get networks") ErrNetworkNotFound = errors.New("network not found") ErrAddWallet = errors.New("cannot add wallet") ErrGetBalance = errors.New("cannot get balance") ErrFindWallet = errors.New("cannot find wallet") ErrDeleteWallet = errors.New("cannot delete wallet") )
Functions ¶
This section is empty.
Types ¶
type NetworkRepository ¶
type NetworkUseCase ¶
type Pagination ¶
type WalletEthAPI ¶
type WalletRepository ¶
type WalletRepository interface { AddOne(ctx context.Context, wallet *Wallet) error GetOne(ctx context.Context, userID string, id int, wallet *Wallet) error GetManyWithPagination(ctx context.Context, userID string, pagination *Pagination, wallets *[]Wallet) error DeleteOne(ctx context.Context, userID string, id int) error }
type WalletUseCase ¶
type WalletUseCase interface { AddOne(ctx context.Context, wallet *Wallet) (Balance, error) GetOne(ctx context.Context, userID string, id int) (Balance, error) GetManyWithPagination(ctx context.Context, userID string, pagination *Pagination) ([]Balance, *Pagination, error) DeleteOne(ctx context.Context, userID string, ID int) error }
Click to show internal directories.
Click to hide internal directories.