Documentation ¶
Index ¶
- func GenerateAPIKey() (string, error)
- func HashAPIKey(key string) string
- type AuthService
- type BookingService
- type EventService
- func (s *EventService) Create(ctx context.Context, req *request.EventRequest) error
- func (s *EventService) Delete(ctx context.Context) error
- func (s *EventService) Get(ctx context.Context) response.EventResponse
- func (s *EventService) List(ctx context.Context) ([]response.EventResponse, error)
- func (s *EventService) Update(ctx context.Context, req *request.EventRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAPIKey ¶
func HashAPIKey ¶
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 (s *AuthService) SignIn(ctx context.Context, req *request.AuthSignInRequest) (*response.AuthResponse, error)
func (*AuthService) SignUp ¶
func (s *AuthService) SignUp(ctx context.Context, req *request.AuthSignUpRequest) error
type BookingService ¶
type BookingService struct {
// contains filtered or unexported fields
}
func NewBookingService ¶
func NewBookingService(repo *repository.BookingRepository) *BookingService
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) Get ¶
func (s *EventService) Get(ctx context.Context) response.EventResponse
func (*EventService) List ¶
func (s *EventService) List(ctx context.Context) ([]response.EventResponse, error)
func (*EventService) Update ¶
func (s *EventService) Update(ctx context.Context, req *request.EventRequest) error
Click to show internal directories.
Click to hide internal directories.