Documentation ¶
Index ¶
- Constants
- func OrderStatusFromModels(st models.OrderItemStatus) (status cinema_orders_service.Status)
- type CinemaOrdersHandler
- func (h *CinemaOrdersHandler) CancelReservation(ctx context.Context, in *cinema_orders_service.CancelReservationRequest) (res *emptypb.Empty, err error)
- func (h *CinemaOrdersHandler) GetOccupiedPlaces(ctx context.Context, in *cinema_orders_service.GetOccupiedPlacesRequest) (res *cinema_orders_service.Places, err error)
- func (h *CinemaOrdersHandler) GetOrder(ctx context.Context, in *cinema_orders_service.GetOrderRequest) (res *cinema_orders_service.Order, err error)
- func (h *CinemaOrdersHandler) GetOrders(ctx context.Context, in *cinema_orders_service.GetOrdersRequest) (res *cinema_orders_service.OrdersPreviews, err error)
- func (h *CinemaOrdersHandler) GetScreeningsOccupiedPlacesCounts(ctx context.Context, ...) (res *cinema_orders_service.ScreeningsOccupiedPlacesCount, err error)
- func (h *CinemaOrdersHandler) ProcessOrder(ctx context.Context, in *cinema_orders_service.ProcessOrderRequest) (res *cinema_orders_service.ProcessOrderResponse, err error)
- func (h *CinemaOrdersHandler) RefundOrder(ctx context.Context, in *cinema_orders_service.RefundOrderRequest) (res *emptypb.Empty, err error)
- func (h *CinemaOrdersHandler) ReservePlaces(ctx context.Context, in *cinema_orders_service.ReservePlacesRequest) (res *cinema_orders_service.ReservePlacesResponse, err error)
Constants ¶
View Source
const (
AccountIdContext = "X-Account-Id"
)
Variables ¶
This section is empty.
Functions ¶
func OrderStatusFromModels ¶
func OrderStatusFromModels(st models.OrderItemStatus) (status cinema_orders_service.Status)
Types ¶
type CinemaOrdersHandler ¶
type CinemaOrdersHandler struct { cinema_orders_service.UnimplementedCinemaOrdersServiceV1Server // contains filtered or unexported fields }
func NewCinemaOrdersHandler ¶
func NewCinemaOrdersHandler(logger *logrus.Logger, service service.CinemaOrdersService) *CinemaOrdersHandler
func (*CinemaOrdersHandler) CancelReservation ¶
func (h *CinemaOrdersHandler) CancelReservation(ctx context.Context, in *cinema_orders_service.CancelReservationRequest) (res *emptypb.Empty, err error)
func (*CinemaOrdersHandler) GetOccupiedPlaces ¶
func (h *CinemaOrdersHandler) GetOccupiedPlaces(ctx context.Context, in *cinema_orders_service.GetOccupiedPlacesRequest) (res *cinema_orders_service.Places, err error)
func (*CinemaOrdersHandler) GetOrder ¶
func (h *CinemaOrdersHandler) GetOrder(ctx context.Context, in *cinema_orders_service.GetOrderRequest) ( res *cinema_orders_service.Order, err error)
func (*CinemaOrdersHandler) GetOrders ¶
func (h *CinemaOrdersHandler) GetOrders(ctx context.Context, in *cinema_orders_service.GetOrdersRequest) (res *cinema_orders_service.OrdersPreviews, err error)
func (*CinemaOrdersHandler) GetScreeningsOccupiedPlacesCounts ¶
func (h *CinemaOrdersHandler) GetScreeningsOccupiedPlacesCounts(ctx context.Context, in *cinema_orders_service.GetScreeningsOccupiedPlacesCountsRequest) ( res *cinema_orders_service.ScreeningsOccupiedPlacesCount, err error)
func (*CinemaOrdersHandler) ProcessOrder ¶
func (h *CinemaOrdersHandler) ProcessOrder(ctx context.Context, in *cinema_orders_service.ProcessOrderRequest) (res *cinema_orders_service.ProcessOrderResponse, err error)
func (*CinemaOrdersHandler) RefundOrder ¶
func (h *CinemaOrdersHandler) RefundOrder(ctx context.Context, in *cinema_orders_service.RefundOrderRequest) (res *emptypb.Empty, err error)
func (*CinemaOrdersHandler) ReservePlaces ¶
func (h *CinemaOrdersHandler) ReservePlaces(ctx context.Context, in *cinema_orders_service.ReservePlacesRequest) (res *cinema_orders_service.ReservePlacesResponse, err error)
Click to show internal directories.
Click to hide internal directories.