Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsRepository ¶
type AccountsRepository interface { Create(ctx context.Context, account model.Accounts) (model.Accounts, error) Get(ctx context.Context, id string) (model.Accounts, error) List(ctx context.Context, owner string, limit, offset int) ([]model.Accounts, error) Update(ctx context.Context, account model.Accounts) (model.Accounts, error) Delete(ctx context.Context, id string) error GetForUpdate(ctx context.Context, id string) (model.Accounts, error) }
func NewAccountsRepository ¶
func NewAccountsRepository(db *sqlx.DB) AccountsRepository
type EntryRepository ¶
type EntryRepository interface { Create(ctx context.Context, entry model.Entries) (model.Entries, error) Get(ctx context.Context, id string) (model.Entries, error) List(ctx context.Context, accountId string, limit, offset int) ([]model.Entries, error) }
func NewEntryRepository ¶
func NewEntryRepository(db *sqlx.DB) EntryRepository
type SessionsRepository ¶
type SessionsRepository interface { Create(ctx context.Context, sessions model.Sessions) (model.Sessions, error) Get(ctx context.Context, id uuid.UUID) (model.Sessions, error) Update(ctx context.Context, id uuid.UUID, isBlocked bool) error Last(ctx context.Context) (model.Sessions, error) }
func NewSessionsRepository ¶
func NewSessionsRepository(db *sqlx.DB) SessionsRepository
type TransferRepository ¶
type TransferRepository interface { Create(ctx context.Context, transfer model.Transfer) (model.Transfer, error) Get(ctx context.Context, id string) (model.Transfer, error) List(ctx context.Context, transfer model.Transfer, limit, offset int) ([]model.Transfer, error) TransferTx(ctx context.Context, transfer model.Transfer) (dto.MakeTransferResponse, error) }
func NewTransferRepository ¶
func NewTransferRepository(db *sqlx.DB) TransferRepository
type UsersRepository ¶
type UsersRepository interface { Create(ctx context.Context, user model.Users) (model.Users, error) Get(ctx context.Context, username string) (model.Users, error) Update(ctx context.Context, user model.Users) (model.Users, error) }
func NewUsersRepository ¶
func NewUsersRepository(db *sqlx.DB) UsersRepository
Click to show internal directories.
Click to hide internal directories.