Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addresses ¶
type Addresses struct {
// contains filtered or unexported fields
}
Addresses is a repository for addresses.
func NewAddressesRepo ¶
NewAddressesRepo creates a new repository for addresses.
type All ¶
type All struct { Addresses *Addresses Paymails *Paymails Operations *Operations Users *Users Outputs *Outputs }
All holds all repositories.
func NewRepositories ¶
NewRepositories creates a new holder for all repositories.
type Operations ¶
type Operations struct {
// contains filtered or unexported fields
}
Operations is a repository for operations.
func NewOperationsRepo ¶
func NewOperationsRepo(db *gorm.DB) *Operations
NewOperationsRepo creates a new repository for operations.
func (*Operations) PaginatedForUser ¶
func (o *Operations) PaginatedForUser(ctx context.Context, userID string, page filter.Page) (*dbquery.PagedResult[database.Operation], error)
PaginatedForUser returns operations for a user based on userID and the provided paging options.
type Outputs ¶
type Outputs struct {
// contains filtered or unexported fields
}
Outputs is a repository for outputs.
func NewOutputsRepo ¶
NewOutputsRepo creates a new repository for outputs.
type Paymails ¶
type Paymails struct {
// contains filtered or unexported fields
}
Paymails is a repository for paymails.
func NewPaymailsRepo ¶
NewPaymailsRepo creates a new repository for paymails.
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
Users is a repository for users.
func NewUsersRepo ¶
NewUsersRepo creates a new repository for users.
func (*Users) AppendAddress ¶
func (u *Users) AppendAddress(ctx context.Context, userRow *database.User, addressRow *database.Address) error
AppendAddress appends an address to the database.
func (*Users) GetBalance ¶
GetBalance returns the balance of a user in a given bucket.