service

package
v0.0.0-...-6414837 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentService

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

func NewPaymentService

func NewPaymentService(dbPath string) (*PaymentService, error)

func (*PaymentService) Balance

func (ps *PaymentService) Balance(accountID int) (float64, error)

func (*PaymentService) Deposit

func (ps *PaymentService) Deposit(accountID int, amount float64) error

func (*PaymentService) Withdraw

func (ps *PaymentService) Withdraw(accountID int, amount float64) error

Jump to

Keyboard shortcuts

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