repository

package
v0.0.0-...-d34172e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionRepository

type SessionRepository interface {
	Create(ctx context.Context, session *domain.Session) error
	Fetch(ctx context.Context) ([]domain.Session, error)
	GetByID(ctx context.Context, id string) (domain.Session, error)
}

func NewSessionRepository

func NewSessionRepository(db bootstrap.Database, timeout time.Duration, tableName string) SessionRepository

type UserRepository

type UserRepository interface {
	Create(ctx context.Context, user *domain.User) error
	Fetch(ctx context.Context) ([]domain.User, error)
	GetByEmail(ctx context.Context, email string) (domain.User, error)
	GetByID(ctx context.Context, id string) (domain.User, error)
}

func NewUserRepository

func NewUserRepository(db bootstrap.Database, timeout time.Duration, tableName string) UserRepository

Jump to

Keyboard shortcuts

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