Documentation
¶
Index ¶
- func NewNetworkRepository(db *gorm.DB, c *cache.Cache) entity.NetworkRepository
- func NewWalletRepository(db *gorm.DB, c *cache.Cache) entity.WalletRepository
- type NetworkRepository
- type WalletRepository
- func (w *WalletRepository) AddOne(ctx context.Context, wallet *entity.Wallet) (err error)
- func (w *WalletRepository) DeleteOne(ctx context.Context, userID string, id int) (err error)
- func (w *WalletRepository) GetManyWithPagination(ctx context.Context, userID string, p *entity.Pagination, ...) (err error)
- func (w *WalletRepository) GetOne(ctx context.Context, userID string, id int, wallet *entity.Wallet) (err error)
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
}
type WalletRepository ¶
type WalletRepository struct {
// contains filtered or unexported fields
}
func (*WalletRepository) GetManyWithPagination ¶
func (w *WalletRepository) GetManyWithPagination(ctx context.Context, userID string, p *entity.Pagination, wallets *[]entity.Wallet) (err error)
Click to show internal directories.
Click to hide internal directories.