Documentation ¶
Index ¶
- type Wallet
- func (w *Wallet) Create(ctx context.Context, userID int) (string, error)
- func (w *Wallet) GetBalance(ctx context.Context, userID int) (float64, error)
- func (w *Wallet) History(ctx context.Context, userID int, Type string, startTime, endTime time.Time) ([]models.Transaction, error)
- func (w *Wallet) Transaction(ctx context.Context, transaction models.Transaction) (string, float64, error)
- type Walleter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) GetBalance ¶
func (*Wallet) Transaction ¶
type Walleter ¶
type Walleter interface { Create(ctx context.Context, userID int) (string, error) GetBalance(ctx context.Context, userID int) (float64, error) Transaction(ctx context.Context, transaction models.Transaction) (string, float64, error) History(ctx context.Context, userID int, Type string, startTime, endTime time.Time) ([]models.Transaction, error) }
Click to show internal directories.
Click to hide internal directories.