Documentation ¶
Index ¶
- Constants
- func LoggerMiddleware(log *logrus.Logger) func(c *fiber.Ctx) error
- func NewApp(db *gorm.DB, log *logrus.Logger) *fiber.App
- type API
- func (a API) CreateBooking(ctx context.Context, request routers.CreateBookingRequestObject) (routers.CreateBookingResponseObject, error)
- func (a API) DeleteBookingById(ctx context.Context, request routers.DeleteBookingByIdRequestObject) (routers.DeleteBookingByIdResponseObject, error)
- func (a API) GetAllBooking(ctx context.Context, request routers.GetAllBookingRequestObject) (routers.GetAllBookingResponseObject, error)
- func (a API) GetBookingById(ctx context.Context, request routers.GetBookingByIdRequestObject) (routers.GetBookingByIdResponseObject, error)
- func (a API) GetBookingByUserId(ctx context.Context, request routers.GetBookingByUserIdRequestObject) (routers.GetBookingByUserIdResponseObject, error)
- func (a API) UpdateBookingById(ctx context.Context, request routers.UpdateBookingByIdRequestObject) (routers.UpdateBookingByIdResponseObject, error)
- type UserService
- func (u *UserService) CreateUser(ctx context.Context, userReq *userpb.CreateUserRequest) (*emptypb.Empty, error)
- func (u *UserService) DeleteUser(ctx context.Context, userReq *userpb.DeleteUserRequest) (*emptypb.Empty, error)
- func (u *UserService) GetAllUsers(ctx context.Context, userReq *userpb.GetAllUserRequest) (*userpb.GetAllUserResponse, error)
- func (u *UserService) GetUser(ctx context.Context, userReq *userpb.GetUserRequest) (*userpb.GetUserResponse, error)
- func (u *UserService) UpdateUser(ctx context.Context, userReq *userpb.UpdateUserRequest) (*userpb.UpdateUserResponse, error)
Constants ¶
View Source
const (
DateFormat = "2006-01-02"
)
Variables ¶
This section is empty.
Functions ¶
func LoggerMiddleware ¶
Types ¶
type API ¶
func (API) CreateBooking ¶
func (a API) CreateBooking(ctx context.Context, request routers.CreateBookingRequestObject) (routers.CreateBookingResponseObject, error)
func (API) DeleteBookingById ¶
func (a API) DeleteBookingById(ctx context.Context, request routers.DeleteBookingByIdRequestObject) (routers.DeleteBookingByIdResponseObject, error)
func (API) GetAllBooking ¶
func (a API) GetAllBooking(ctx context.Context, request routers.GetAllBookingRequestObject) (routers.GetAllBookingResponseObject, error)
func (API) GetBookingById ¶
func (a API) GetBookingById(ctx context.Context, request routers.GetBookingByIdRequestObject) (routers.GetBookingByIdResponseObject, error)
func (API) GetBookingByUserId ¶
func (a API) GetBookingByUserId(ctx context.Context, request routers.GetBookingByUserIdRequestObject) (routers.GetBookingByUserIdResponseObject, error)
func (API) UpdateBookingById ¶
func (a API) UpdateBookingById(ctx context.Context, request routers.UpdateBookingByIdRequestObject) (routers.UpdateBookingByIdResponseObject, error)
type UserService ¶
func NewUserService ¶
func NewUserService(db *gorm.DB, log *logrus.Logger) *UserService
func (*UserService) CreateUser ¶
func (u *UserService) CreateUser(ctx context.Context, userReq *userpb.CreateUserRequest) (*emptypb.Empty, error)
func (*UserService) DeleteUser ¶
func (u *UserService) DeleteUser(ctx context.Context, userReq *userpb.DeleteUserRequest) (*emptypb.Empty, error)
func (*UserService) GetAllUsers ¶
func (u *UserService) GetAllUsers(ctx context.Context, userReq *userpb.GetAllUserRequest) (*userpb.GetAllUserResponse, error)
func (*UserService) GetUser ¶
func (u *UserService) GetUser(ctx context.Context, userReq *userpb.GetUserRequest) (*userpb.GetUserResponse, error)
func (*UserService) UpdateUser ¶
func (u *UserService) UpdateUser(ctx context.Context, userReq *userpb.UpdateUserRequest) (*userpb.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.