repository

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package repository provides data persistence implementations for domain entities.

Package repository provides data persistence implementations for domain entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutboxEventRepository

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

OutboxEventRepository handles outbox event persistence

func NewOutboxEventRepository

func NewOutboxEventRepository(db *sql.DB, driver string) *OutboxEventRepository

NewOutboxEventRepository creates a new OutboxEventRepository

func (*OutboxEventRepository) Create

Create inserts a new outbox event

func (*OutboxEventRepository) GetPendingEvents

func (r *OutboxEventRepository) GetPendingEvents(ctx context.Context, limit int) ([]*domain.OutboxEvent, error)

GetPendingEvents retrieves pending events with limit

func (*OutboxEventRepository) Update

Update updates an outbox event

type UserRepository

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

UserRepository handles user persistence

func NewUserRepository

func NewUserRepository(db *sql.DB, driver string) *UserRepository

NewUserRepository creates a new UserRepository

func (*UserRepository) Create

func (r *UserRepository) Create(ctx context.Context, user *domain.User) error

Create inserts a new user

func (*UserRepository) GetByEmail

func (r *UserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)

GetByEmail retrieves a user by email

func (*UserRepository) GetByID

func (r *UserRepository) GetByID(ctx context.Context, id int64) (*domain.User, error)

GetByID retrieves a user by ID

Jump to

Keyboard shortcuts

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