service

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAPIKey

func GenerateAPIKey() (string, error)

func HashAPIKey

func HashAPIKey(key string) string

Types

type AuthService

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

func NewAuthService

func NewAuthService(apiKeyRepo *repository.APIKeyRepository, userRepo *repository.UserRepository) *AuthService

func (*AuthService) SignIn

func (*AuthService) SignOut

func (s *AuthService) SignOut(ctx context.Context) error

func (*AuthService) SignUp

type BookingService

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

func NewBookingService

func NewBookingService(repo *repository.BookingRepository) *BookingService

func (*BookingService) Create

func (s *BookingService) Create(ctx context.Context) error

func (*BookingService) Delete

func (s *BookingService) Delete(ctx context.Context) error

func (*BookingService) ListByEvent

func (s *BookingService) ListByEvent(ctx context.Context) ([]response.UserResponse, error)

func (*BookingService) ListByUser

func (s *BookingService) ListByUser(ctx context.Context) ([]response.EventResponse, error)

type EventService

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

func NewEventService

func NewEventService(repo *repository.EventRepository) *EventService

func (*EventService) Create

func (s *EventService) Create(ctx context.Context, req *request.EventRequest) error

func (*EventService) Delete

func (s *EventService) Delete(ctx context.Context) error

func (*EventService) Get

func (*EventService) List

func (*EventService) Update

func (s *EventService) Update(ctx context.Context, req *request.EventRequest) error

Jump to

Keyboard shortcuts

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