Documentation ¶
Index ¶
- type APIKeyRepository
- type BookingRepository
- func (r *BookingRepository) Create(ctx context.Context, userID, eventID uuid.UUID) error
- func (r *BookingRepository) Delete(ctx context.Context, userID, eventID uuid.UUID) error
- func (r *BookingRepository) ListByEvent(ctx context.Context, eventID uuid.UUID) ([]model.User, error)
- func (r *BookingRepository) ListByUser(ctx context.Context, userID uuid.UUID) ([]model.Event, error)
- type EventRepository
- func (r *EventRepository) Create(ctx context.Context, user_id uuid.UUID, name, description, address string, ...) error
- func (r *EventRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *EventRepository) Get(ctx context.Context, id uuid.UUID) (*model.Event, error)
- func (r *EventRepository) List(ctx context.Context) ([]model.Event, error)
- func (r *EventRepository) Update(ctx context.Context, id uuid.UUID, name, description, address string, ...) error
- type UserRepository
- func (r *UserRepository) Create(ctx context.Context, name, email, password string) error
- func (r *UserRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *UserRepository) Get(ctx context.Context, id uuid.UUID) (*model.User, error)
- func (r *UserRepository) GetByEmail(ctx context.Context, email string) (*model.User, error)
- func (r *UserRepository) Update(ctx context.Context, id uuid.UUID, name, email, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyRepository ¶
type APIKeyRepository struct {
// contains filtered or unexported fields
}
func NewAPIKeyRepository ¶
func NewAPIKeyRepository() *APIKeyRepository
type BookingRepository ¶
type BookingRepository struct {
// contains filtered or unexported fields
}
func NewBookingRepository ¶
func NewBookingRepository() *BookingRepository
func (*BookingRepository) ListByEvent ¶
func (*BookingRepository) ListByUser ¶
type EventRepository ¶
type EventRepository struct {
// contains filtered or unexported fields
}
func NewEventRepository ¶
func NewEventRepository() *EventRepository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository() *UserRepository
func (*UserRepository) Create ¶
func (r *UserRepository) Create(ctx context.Context, name, email, password string) error
func (*UserRepository) GetByEmail ¶
Click to show internal directories.
Click to hide internal directories.