Documentation ¶
Index ¶
- func GetDB(uri string) (*sqlx.DB, error)
- func PgxCreateDB(uri string) (*sqlx.DB, error)
- type Storage
- func (s *Storage) Close(context.Context) error
- func (s *Storage) CreateUser(ctx context.Context, title string) (models.UserID, error)
- func (s *Storage) DeleteBills(ctx context.Context, billIDs []models.BillID) ([]models.Bill, error)
- func (s *Storage) GetBills(ctx context.Context, billIDs []models.BillID) ([]models.Bill, error)
- func (s *Storage) GetUserAccount(ctx context.Context, userID models.UserID) (models.Account, error)
- func (s *Storage) GetUserBalances(ctx context.Context, userID models.UserID) (map[models.UserID]models.Money, error)
- func (s *Storage) ListUserBills(ctx context.Context, userID models.UserID) ([]models.Bill, error)
- func (s *Storage) SaveSplittedBill(ctx context.Context, ownerID models.UserID, bill models.Bill) (models.BillID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) CreateUser ¶
func (*Storage) DeleteBills ¶
func (*Storage) GetUserAccount ¶
func (*Storage) GetUserBalances ¶
func (*Storage) ListUserBills ¶
Click to show internal directories.
Click to hide internal directories.