Documentation ¶
Index ¶
- func Init(s micro.Service, c *dig.Container) error
- type CinemaHandler
- type CommonHandler
- type DiscountHandler
- type ReservationHandler
- func (h *ReservationHandler) Check(ctx context.Context, req *pb_reservation.CheckRequest, ...) error
- func (h *ReservationHandler) Clear(ctx context.Context, req *pb_reservation.ClearRequest, rsp *empty.Empty) error
- func (h *ReservationHandler) InfoByIdFromDB(ctx context.Context, req *pb_reservation.InfoByIdFromDBRequest, ...) error
- func (h *ReservationHandler) InfoByNumber(ctx context.Context, req *pb_reservation.InfoByNumberRequest, ...) error
- func (h *ReservationHandler) InfoByNumberFromDB(ctx context.Context, req *pb_reservation.InfoByNumberFromDBRequest, ...) error
- func (h *ReservationHandler) Payed(ctx context.Context, req *pb_reservation.PayedRequest, ...) error
- func (h *ReservationHandler) PayedWithContract(ctx context.Context, req *pb_reservation.PayedWithContractRequest, ...) error
- func (h *ReservationHandler) Reserve(ctx context.Context, req *pb_reservation.ReserveRequest, ...) error
- func (h *ReservationHandler) Sell(ctx context.Context, req *pb_reservation.SellRequest, ...) error
- type SeanceHandler
- func (h *SeanceHandler) Availability(ctx context.Context, req *pb_seance.AvailabilityRequest, ...) error
- func (h *SeanceHandler) HallMap(ctx context.Context, req *pb_seance.HallMapRequest, ...) error
- func (h *SeanceHandler) HallScheme(ctx context.Context, req *pb_seance.HallSchemeRequest, ...) error
- func (h *SeanceHandler) HallSeatStatus(ctx context.Context, req *pb_seance.HallSeatStatusRequest, ...) error
- func (h *SeanceHandler) HallStructure(ctx context.Context, req *pb_seance.HallStructureRequest, ...) error
- func (h *SeanceHandler) Prices(ctx context.Context, req *pb_seance.PricesRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CinemaHandler ¶
type CinemaHandler struct {
// contains filtered or unexported fields
}
CinemaHandler ...
func NewCinemaHandler ¶
func NewCinemaHandler( cinema service.CinemaService, ) *CinemaHandler
NewCinemaHandler ...
func (*CinemaHandler) Halls ¶
func (h *CinemaHandler) Halls(ctx context.Context, req *pb_cinema.HallsRequest, rsp *pb_cinema.HallsResponse) error
Halls ...
type CommonHandler ¶
type CommonHandler struct {
// contains filtered or unexported fields
}
CommonHandler ...
func NewCommonHandler ¶
func NewCommonHandler( common service.CommonService, ) *CommonHandler
NewCommonHandler ...
func (*CommonHandler) Version ¶
func (h *CommonHandler) Version(ctx context.Context, req *empty.Empty, rsp *pb_common.VersionResponse) error
Version ...
type DiscountHandler ¶ added in v0.2.0
type DiscountHandler struct {
// contains filtered or unexported fields
}
DiscountHandler ...
func NewDiscountHandler ¶ added in v0.2.0
func NewDiscountHandler( discount service.DiscountService, db *plugin_database_gorm.Plugin, ) *DiscountHandler
NewDiscountHandler ...
func (*DiscountHandler) Apply ¶ added in v0.2.0
func (h *DiscountHandler) Apply(ctx context.Context, req *pb_discount.ApplyRequest, rsp *empty.Empty) error
Apply ...
type ReservationHandler ¶
type ReservationHandler struct {
// contains filtered or unexported fields
}
ReservationHandler ...
func NewReservationHandler ¶
func NewReservationHandler( reservation service.ReservationService, seance service.SeanceService, ) *ReservationHandler
NewReservationHandler ...
func (*ReservationHandler) Check ¶ added in v0.8.3
func (h *ReservationHandler) Check(ctx context.Context, req *pb_reservation.CheckRequest, rsp *pb_reservation.CheckResponse) error
Check ...
func (*ReservationHandler) Clear ¶
func (h *ReservationHandler) Clear(ctx context.Context, req *pb_reservation.ClearRequest, rsp *empty.Empty) error
Clear ...
func (*ReservationHandler) InfoByIdFromDB ¶ added in v0.8.3
func (h *ReservationHandler) InfoByIdFromDB(ctx context.Context, req *pb_reservation.InfoByIdFromDBRequest, rsp *pb_reservation.InfoByIdFromDBResponse) error
InfoByIdFromDB ...
func (*ReservationHandler) InfoByNumber ¶
func (h *ReservationHandler) InfoByNumber(ctx context.Context, req *pb_reservation.InfoByNumberRequest, rsp *pb_reservation.InfoByNumberResponse) error
InfoByNumber ...
func (*ReservationHandler) InfoByNumberFromDB ¶ added in v0.2.0
func (h *ReservationHandler) InfoByNumberFromDB(ctx context.Context, req *pb_reservation.InfoByNumberFromDBRequest, rsp *pb_reservation.InfoByNumberFromDBResponse) error
InfoByNumberFromDB ...
func (*ReservationHandler) Payed ¶
func (h *ReservationHandler) Payed(ctx context.Context, req *pb_reservation.PayedRequest, rsp *pb_reservation.PayedResponse) error
Payed ...
func (*ReservationHandler) PayedWithContract ¶
func (h *ReservationHandler) PayedWithContract(ctx context.Context, req *pb_reservation.PayedWithContractRequest, rsp *pb_reservation.PayedResponse) error
PayedWithContract ...
func (*ReservationHandler) Reserve ¶
func (h *ReservationHandler) Reserve(ctx context.Context, req *pb_reservation.ReserveRequest, rsp *pb_reservation.ReserveResponse) error
Reserve ...
func (*ReservationHandler) Sell ¶
func (h *ReservationHandler) Sell(ctx context.Context, req *pb_reservation.SellRequest, rsp *pb_reservation.SellResponse) error
Sell ...
type SeanceHandler ¶
type SeanceHandler struct {
// contains filtered or unexported fields
}
SeanceHandler ...
func NewSeanceHandler ¶
func NewSeanceHandler( seance service.SeanceService, cinema service.CinemaService, ) *SeanceHandler
NewSeanceHandler ...
func (*SeanceHandler) Availability ¶
func (h *SeanceHandler) Availability(ctx context.Context, req *pb_seance.AvailabilityRequest, rsp *pb_seance.AvailabilityResponse) error
Availability ...
func (*SeanceHandler) HallMap ¶
func (h *SeanceHandler) HallMap(ctx context.Context, req *pb_seance.HallMapRequest, rsp *pb_seance.HallMapResponse) error
HallMap ...
func (*SeanceHandler) HallScheme ¶
func (h *SeanceHandler) HallScheme(ctx context.Context, req *pb_seance.HallSchemeRequest, rsp *pb_seance.HallSchemeResponse) error
HallScheme ...
func (*SeanceHandler) HallSeatStatus ¶
func (h *SeanceHandler) HallSeatStatus(ctx context.Context, req *pb_seance.HallSeatStatusRequest, rsp *pb_seance.HallSeatStatusResponse) error
HallSeatStatus ...
func (*SeanceHandler) HallStructure ¶
func (h *SeanceHandler) HallStructure(ctx context.Context, req *pb_seance.HallStructureRequest, rsp *pb_seance.HallStructureResponse) error
HallStructure ...
func (*SeanceHandler) Prices ¶
func (h *SeanceHandler) Prices(ctx context.Context, req *pb_seance.PricesRequest, rsp *pb_seance.PricesResponse) error
Prices ...
Click to show internal directories.
Click to hide internal directories.