repositories

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepository

type AuthRepository interface {
	ValidateToken(ctx context.Context, token string) (*models.Auth, error)
	GenerateToken(ctx context.Context, auth *models.Auth) (*models.Token, error)
}

type PlanRepository

type PlanRepository interface {
	FindAll(ctx context.Context, params *models.PlanSearchParams) ([]*models.Plan, error)
	FindByID(ctx context.Context, id string) (*models.Plan, error)
}

type ReservationRepository

type ReservationRepository interface {
	FindByUserID(ctx context.Context, userID string) ([]*models.Reservation, error)
	Create(ctx context.Context, reservation *models.Reservation) (*models.Reservation, error)
}

type UserRepository

type UserRepository interface {
	FindAll(ctx context.Context) ([]*models.User, error)
	FindByUserID(ctx context.Context, userID string) (*models.User, error)
	Store(ctx context.Context, user *models.User) error
}

Jump to

Keyboard shortcuts

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