repository

package
v0.0.0-...-558561e Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

func (*APIKeyRepository) Create

func (r *APIKeyRepository) Create(ctx context.Context, userID uuid.UUID, key string) error

func (*APIKeyRepository) Delete

func (r *APIKeyRepository) Delete(ctx context.Context, id uuid.UUID) error

func (*APIKeyRepository) GetByKey

func (r *APIKeyRepository) GetByKey(ctx context.Context, key string) (*model.APIKey, error)

type BookingRepository

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

func NewBookingRepository

func NewBookingRepository() *BookingRepository

func (*BookingRepository) Create

func (r *BookingRepository) Create(ctx context.Context, userID, eventID uuid.UUID) error

func (*BookingRepository) Delete

func (r *BookingRepository) Delete(ctx context.Context, userID, eventID uuid.UUID) error

func (*BookingRepository) ListByEvent

func (r *BookingRepository) ListByEvent(ctx context.Context, eventID uuid.UUID) ([]model.User, error)

func (*BookingRepository) ListByUser

func (r *BookingRepository) ListByUser(ctx context.Context, userID uuid.UUID) ([]model.Event, error)

type EventRepository

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

func NewEventRepository

func NewEventRepository() *EventRepository

func (*EventRepository) Create

func (r *EventRepository) Create(ctx context.Context, user_id uuid.UUID, name, description, address string, startTime, endTime time.Time) error

func (*EventRepository) Delete

func (r *EventRepository) Delete(ctx context.Context, id uuid.UUID) error

func (*EventRepository) Get

func (r *EventRepository) Get(ctx context.Context, id uuid.UUID) (*model.Event, error)

func (*EventRepository) List

func (r *EventRepository) List(ctx context.Context) ([]model.Event, error)

func (*EventRepository) Update

func (r *EventRepository) Update(ctx context.Context, id uuid.UUID, name, description, address string, startTime, endTime time.Time) error

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) Delete

func (r *UserRepository) Delete(ctx context.Context, id uuid.UUID) error

func (*UserRepository) Get

func (r *UserRepository) Get(ctx context.Context, id uuid.UUID) (*model.User, error)

func (*UserRepository) GetByEmail

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

func (*UserRepository) Update

func (r *UserRepository) Update(ctx context.Context, id uuid.UUID, name, email, password string) error

Jump to

Keyboard shortcuts

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