Documentation ¶
Index ¶
- func Init(s micro.Service, c *dig.Container) error
- type BookingHandler
- func (h *BookingHandler) Create(ctx context.Context, req *pb_booking.CreateRequest, ...) error
- func (h *BookingHandler) CreateMenu(ctx context.Context, req *pb_booking.CreateRequest, ...) error
- func (h *BookingHandler) CustomerUpdate(ctx context.Context, req *pb_booking.CustomerUpdateRequest, ...) error
- func (h *BookingHandler) Status(ctx context.Context, req *pb_booking.Request, rsp *pb_shared.StatusResponse) error
- type DetailHandler
- type OrderHandler
- func (h *OrderHandler) Create(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
- func (h *OrderHandler) Delete(ctx context.Context, req *pb_order.Request, rsp *empty.Empty) error
- func (h *OrderHandler) Get(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
- func (h *OrderHandler) Paginate(ctx context.Context, req *pb_order.PaginateRequest, ...) error
- func (h *OrderHandler) Update(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
- type PaymentHandler
- func (h *PaymentHandler) Callback(ctx context.Context, req *pb_payment.CallbackRequest, rsp *empty.Empty) error
- func (h *PaymentHandler) Get(ctx context.Context, req *pb_payment.GetRequest, rsp *pb_payment.Response) error
- func (h *PaymentHandler) GetStatus(ctx context.Context, req *pb_payment.GetRequest, rsp *pb_shared.StatusResponse) error
- func (h *PaymentHandler) HoldUrl(ctx context.Context, req *pb_payment.HoldUrlRequest, ...) error
- func (h *PaymentHandler) Refund(ctx context.Context, req *pb_payment.RefundRequest, ...) error
- type ReservationHandler
- func (h *ReservationHandler) Clear(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) DiscountApply(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) Hold(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) Payed(ctx context.Context, req *pb_reservation.Request, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BookingHandler ¶
type BookingHandler struct {
// contains filtered or unexported fields
}
BookingHandler ...
func NewBookingHandler ¶
func NewBookingHandler( order service.OrderService, detail service.DetailService, reservation service.ReservationService, seat service.SeatService, clnt client.Client, ) *BookingHandler
NewBookingHandler ...
func (*BookingHandler) Create ¶
func (h *BookingHandler) Create(ctx context.Context, req *pb_booking.CreateRequest, rsp *pb_shared.StatusResponse) error
Create ...
func (*BookingHandler) CreateMenu ¶
func (h *BookingHandler) CreateMenu(ctx context.Context, req *pb_booking.CreateRequest, rsp *pb_shared.StatusResponse) error
CreateMenu ...
func (*BookingHandler) CustomerUpdate ¶
func (h *BookingHandler) CustomerUpdate(ctx context.Context, req *pb_booking.CustomerUpdateRequest, rsp *pb_shared.StatusResponse) error
CustomerUpdate ...
func (*BookingHandler) Status ¶
func (h *BookingHandler) Status(ctx context.Context, req *pb_booking.Request, rsp *pb_shared.StatusResponse) error
Status ...
type DetailHandler ¶
type DetailHandler struct {
// contains filtered or unexported fields
}
DetailHandler ...
func NewDetailHandler ¶
func NewDetailHandler( detail service.DetailService, ) *DetailHandler
NewDetailHandler ...
func (*DetailHandler) Get ¶
func (h *DetailHandler) Get(ctx context.Context, req *pb_detail.GetRequest, rsp *pb_detail.GetResponse) error
Get ...
type OrderHandler ¶
type OrderHandler struct {
// contains filtered or unexported fields
}
OrderHandler ...
func NewOrderHandler ¶
func NewOrderHandler( order service.OrderService, ) *OrderHandler
NewOrderHandler ...
func (*OrderHandler) Create ¶
func (h *OrderHandler) Create(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
Create ...
func (*OrderHandler) Get ¶
func (h *OrderHandler) Get(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
Get ...
func (*OrderHandler) Paginate ¶
func (h *OrderHandler) Paginate(ctx context.Context, req *pb_order.PaginateRequest, rsp *pb_order.PaginateResponse) error
Paginate ...
type PaymentHandler ¶
type PaymentHandler struct {
// contains filtered or unexported fields
}
PaymentHandler ...
func NewPaymentHandler ¶
func NewPaymentHandler( payment service.PaymentService, order service.OrderService, reservation service.ReservationService, email service.EmailService, ) *PaymentHandler
NewPaymentHandler ...
func (*PaymentHandler) Callback ¶
func (h *PaymentHandler) Callback(ctx context.Context, req *pb_payment.CallbackRequest, rsp *empty.Empty) error
Callback ...
func (*PaymentHandler) Get ¶
func (h *PaymentHandler) Get(ctx context.Context, req *pb_payment.GetRequest, rsp *pb_payment.Response) error
Get ...
func (*PaymentHandler) GetStatus ¶
func (h *PaymentHandler) GetStatus(ctx context.Context, req *pb_payment.GetRequest, rsp *pb_shared.StatusResponse) error
GetStatus ...
func (*PaymentHandler) HoldUrl ¶ added in v2.17.1
func (h *PaymentHandler) HoldUrl(ctx context.Context, req *pb_payment.HoldUrlRequest, rsp *pb_payment.HoldUrlResponse) error
HoldUrl ...
func (*PaymentHandler) Refund ¶
func (h *PaymentHandler) Refund(ctx context.Context, req *pb_payment.RefundRequest, rsp *pb_shared.StatusResponse) error
Refund ...
type ReservationHandler ¶
type ReservationHandler struct {
// contains filtered or unexported fields
}
ReservationHandler ...
func NewReservationHandler ¶
func NewReservationHandler( reservation service.ReservationService, order service.OrderService, ) *ReservationHandler
NewReservationHandler ...
func (*ReservationHandler) Clear ¶
func (h *ReservationHandler) Clear(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Clear ...
func (*ReservationHandler) DiscountApply ¶
func (h *ReservationHandler) DiscountApply(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
DiscountApply ...
func (*ReservationHandler) Hold ¶
func (h *ReservationHandler) Hold(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Hold ...
func (*ReservationHandler) Payed ¶
func (h *ReservationHandler) Payed(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Payed ...
Click to show internal directories.
Click to hide internal directories.