repository

package
v0.0.0-...-fd7996a Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkRepository

func NewNetworkRepository(db *gorm.DB, c *cache.Cache) entity.NetworkRepository

func NewWalletRepository

func NewWalletRepository(db *gorm.DB, c *cache.Cache) entity.WalletRepository

Types

type NetworkRepository

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

func (*NetworkRepository) GetAll

func (n *NetworkRepository) GetAll(ctx context.Context, networks *[]entity.Network) (err error)

type WalletRepository

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

func (*WalletRepository) AddOne

func (w *WalletRepository) AddOne(ctx context.Context, wallet *entity.Wallet) (err error)

func (*WalletRepository) DeleteOne

func (w *WalletRepository) DeleteOne(ctx context.Context, userID string, id int) (err error)

func (*WalletRepository) GetManyWithPagination

func (w *WalletRepository) GetManyWithPagination(ctx context.Context, userID string, p *entity.Pagination, wallets *[]entity.Wallet) (err error)

func (*WalletRepository) GetOne

func (w *WalletRepository) GetOne(ctx context.Context, userID string, id int, wallet *entity.Wallet) (err error)

Jump to

Keyboard shortcuts

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