Documentation ¶
Index ¶
- func NewReservationServiceEndpoints() []*api.Endpoint
- func RegisterReservationServiceHandler(s server.Server, hdlr ReservationServiceHandler, opts ...server.HandlerOption) error
- type GetQrcodeResponse
- func (*GetQrcodeResponse) Descriptor() ([]byte, []int)
- func (m *GetQrcodeResponse) GetCode() string
- func (*GetQrcodeResponse) ProtoMessage()
- func (m *GetQrcodeResponse) Reset()
- func (m *GetQrcodeResponse) String() string
- func (m *GetQrcodeResponse) Validate() error
- func (m *GetQrcodeResponse) XXX_DiscardUnknown()
- func (m *GetQrcodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetQrcodeResponse) XXX_Merge(src proto.Message)
- func (m *GetQrcodeResponse) XXX_Size() int
- func (m *GetQrcodeResponse) XXX_Unmarshal(b []byte) error
- type GetQrcodeResponseValidationError
- func (e GetQrcodeResponseValidationError) Cause() error
- func (e GetQrcodeResponseValidationError) Error() string
- func (e GetQrcodeResponseValidationError) ErrorName() string
- func (e GetQrcodeResponseValidationError) Field() string
- func (e GetQrcodeResponseValidationError) Key() bool
- func (e GetQrcodeResponseValidationError) Reason() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetOrderUuid() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) Validate() error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type RequestValidationError
- type Reservation
- func (*Reservation) Descriptor() ([]byte, []int)
- func (m *Reservation) GetCinemaWpId() int64
- func (m *Reservation) GetConfirmationDate() string
- func (m *Reservation) GetCreatedAt() string
- func (m *Reservation) GetPaymentUuid() string
- func (m *Reservation) GetQrcode() string
- func (m *Reservation) GetReservationId() int64
- func (m *Reservation) GetReservationNumber() string
- func (m *Reservation) GetReservationPrice() float64
- func (m *Reservation) GetResult() int64
- func (m *Reservation) GetResultText() string
- func (m *Reservation) GetSeanceWpId() int64
- func (m *Reservation) GetSeats() []*seat.Seat
- func (m *Reservation) GetSeatsPrice() float64
- func (m *Reservation) GetUpdatedAt() string
- func (m *Reservation) GetUuid() string
- func (m *Reservation) GetVoidDate() string
- func (*Reservation) ProtoMessage()
- func (m *Reservation) Reset()
- func (m *Reservation) String() string
- func (m *Reservation) Validate() error
- func (m *Reservation) XXX_DiscardUnknown()
- func (m *Reservation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reservation) XXX_Merge(src proto.Message)
- func (m *Reservation) XXX_Size() int
- func (m *Reservation) XXX_Unmarshal(b []byte) error
- type ReservationService
- type ReservationServiceHandler
- type ReservationValidationError
- func (e ReservationValidationError) Cause() error
- func (e ReservationValidationError) Error() string
- func (e ReservationValidationError) ErrorName() string
- func (e ReservationValidationError) Field() string
- func (e ReservationValidationError) Key() bool
- func (e ReservationValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterReservationServiceHandler ¶
func RegisterReservationServiceHandler(s server.Server, hdlr ReservationServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GetQrcodeResponse ¶
type GetQrcodeResponse struct {
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}
func (*GetQrcodeResponse) Descriptor ¶
func (*GetQrcodeResponse) Descriptor() ([]byte, []int)
func (*GetQrcodeResponse) GetCode ¶
func (m *GetQrcodeResponse) GetCode() string
func (*GetQrcodeResponse) ProtoMessage ¶
func (*GetQrcodeResponse) ProtoMessage()
func (*GetQrcodeResponse) Reset ¶
func (m *GetQrcodeResponse) Reset()
func (*GetQrcodeResponse) String ¶
func (m *GetQrcodeResponse) String() string
func (*GetQrcodeResponse) Validate ¶
func (m *GetQrcodeResponse) Validate() error
Validate checks the field values on GetQrcodeResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetQrcodeResponse) XXX_DiscardUnknown ¶
func (m *GetQrcodeResponse) XXX_DiscardUnknown()
func (*GetQrcodeResponse) XXX_Marshal ¶
func (m *GetQrcodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetQrcodeResponse) XXX_Merge ¶
func (m *GetQrcodeResponse) XXX_Merge(src proto.Message)
func (*GetQrcodeResponse) XXX_Size ¶
func (m *GetQrcodeResponse) XXX_Size() int
func (*GetQrcodeResponse) XXX_Unmarshal ¶
func (m *GetQrcodeResponse) XXX_Unmarshal(b []byte) error
type GetQrcodeResponseValidationError ¶
type GetQrcodeResponseValidationError struct {
// contains filtered or unexported fields
}
GetQrcodeResponseValidationError is the validation error returned by GetQrcodeResponse.Validate if the designated constraints aren't met.
func (GetQrcodeResponseValidationError) Cause ¶
func (e GetQrcodeResponseValidationError) Cause() error
Cause function returns cause value.
func (GetQrcodeResponseValidationError) Error ¶
func (e GetQrcodeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetQrcodeResponseValidationError) ErrorName ¶
func (e GetQrcodeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetQrcodeResponseValidationError) Field ¶
func (e GetQrcodeResponseValidationError) Field() string
Field function returns field value.
func (GetQrcodeResponseValidationError) Key ¶
func (e GetQrcodeResponseValidationError) Key() bool
Key function returns key value.
func (GetQrcodeResponseValidationError) Reason ¶
func (e GetQrcodeResponseValidationError) Reason() string
Reason function returns reason value.
type Request ¶
type Request struct {
OrderUuid string `protobuf:"bytes,1,opt,name=order_uuid,json=orderUuid,proto3" json:"order_uuid,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) GetOrderUuid ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) Validate ¶
Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type RequestValidationError ¶
type RequestValidationError struct {
// contains filtered or unexported fields
}
RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.
func (RequestValidationError) Cause ¶
func (e RequestValidationError) Cause() error
Cause function returns cause value.
func (RequestValidationError) Error ¶
func (e RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RequestValidationError) ErrorName ¶
func (e RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RequestValidationError) Field ¶
func (e RequestValidationError) Field() string
Field function returns field value.
func (RequestValidationError) Key ¶
func (e RequestValidationError) Key() bool
Key function returns key value.
func (RequestValidationError) Reason ¶
func (e RequestValidationError) Reason() string
Reason function returns reason value.
type Reservation ¶
type Reservation struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"` PaymentUuid string `protobuf:"bytes,2,opt,name=payment_uuid,json=paymentUuid,proto3" json:"payment_uuid,omitempty" bson:"payment_uuid"` ReservationId int64 `protobuf:"varint,3,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty" bson:"reservation_id"` ReservationNumber string `` /* 138-byte string literal not displayed */ VoidDate string `protobuf:"bytes,5,opt,name=void_date,json=voidDate,proto3" json:"void_date,omitempty" bson:"void_date"` ConfirmationDate string `` /* 134-byte string literal not displayed */ SeatsPrice float64 `protobuf:"fixed64,7,opt,name=seats_price,json=seatsPrice,proto3" json:"seats_price,omitempty" bson:"seats_price"` ReservationPrice float64 `` /* 136-byte string literal not displayed */ CinemaWpId int64 `protobuf:"varint,9,opt,name=cinema_wp_id,json=cinemaWpId,proto3" json:"cinema_wp_id,omitempty" bson:"cinema_wp_id"` SeanceWpId int64 `protobuf:"varint,10,opt,name=seance_wp_id,json=seanceWpId,proto3" json:"seance_wp_id,omitempty" bson:"seance_wp_id"` Result int64 `protobuf:"varint,11,opt,name=result,proto3" json:"result,omitempty" bson:"result"` ResultText string `protobuf:"bytes,12,opt,name=result_text,json=resultText,proto3" json:"result_text,omitempty" bson:"result_text"` Seats []*seat.Seat `protobuf:"bytes,13,rep,name=seats,proto3" json:"seats,omitempty" bson:"seats"` Qrcode string `protobuf:"bytes,14,opt,name=qrcode,proto3" json:"qrcode,omitempty" bson:"qrcode"` CreatedAt string `protobuf:"bytes,1001,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` UpdatedAt string `protobuf:"bytes,1002,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` }
func (*Reservation) Descriptor ¶
func (*Reservation) Descriptor() ([]byte, []int)
func (*Reservation) GetCinemaWpId ¶
func (m *Reservation) GetCinemaWpId() int64
func (*Reservation) GetConfirmationDate ¶
func (m *Reservation) GetConfirmationDate() string
func (*Reservation) GetCreatedAt ¶
func (m *Reservation) GetCreatedAt() string
func (*Reservation) GetPaymentUuid ¶
func (m *Reservation) GetPaymentUuid() string
func (*Reservation) GetQrcode ¶
func (m *Reservation) GetQrcode() string
func (*Reservation) GetReservationId ¶
func (m *Reservation) GetReservationId() int64
func (*Reservation) GetReservationNumber ¶
func (m *Reservation) GetReservationNumber() string
func (*Reservation) GetReservationPrice ¶
func (m *Reservation) GetReservationPrice() float64
func (*Reservation) GetResult ¶
func (m *Reservation) GetResult() int64
func (*Reservation) GetResultText ¶
func (m *Reservation) GetResultText() string
func (*Reservation) GetSeanceWpId ¶
func (m *Reservation) GetSeanceWpId() int64
func (*Reservation) GetSeats ¶
func (m *Reservation) GetSeats() []*seat.Seat
func (*Reservation) GetSeatsPrice ¶
func (m *Reservation) GetSeatsPrice() float64
func (*Reservation) GetUpdatedAt ¶
func (m *Reservation) GetUpdatedAt() string
func (*Reservation) GetUuid ¶
func (m *Reservation) GetUuid() string
func (*Reservation) GetVoidDate ¶
func (m *Reservation) GetVoidDate() string
func (*Reservation) ProtoMessage ¶
func (*Reservation) ProtoMessage()
func (*Reservation) Reset ¶
func (m *Reservation) Reset()
func (*Reservation) String ¶
func (m *Reservation) String() string
func (*Reservation) Validate ¶
func (m *Reservation) Validate() error
Validate checks the field values on Reservation with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Reservation) XXX_DiscardUnknown ¶
func (m *Reservation) XXX_DiscardUnknown()
func (*Reservation) XXX_Marshal ¶
func (m *Reservation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Reservation) XXX_Merge ¶
func (m *Reservation) XXX_Merge(src proto.Message)
func (*Reservation) XXX_Size ¶
func (m *Reservation) XXX_Size() int
func (*Reservation) XXX_Unmarshal ¶
func (m *Reservation) XXX_Unmarshal(b []byte) error
type ReservationService ¶
type ReservationService interface { Hold(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) Payed(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) Clear(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) DiscountApply(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) GetQrcode(ctx context.Context, in *Request, opts ...client.CallOption) (*GetQrcodeResponse, error) }
func NewReservationService ¶
func NewReservationService(name string, c client.Client) ReservationService
type ReservationServiceHandler ¶
type ReservationServiceHandler interface { Hold(context.Context, *Request, *shared.StatusResponse) error Payed(context.Context, *Request, *shared.StatusResponse) error Clear(context.Context, *Request, *shared.StatusResponse) error DiscountApply(context.Context, *Request, *shared.StatusResponse) error GetQrcode(context.Context, *Request, *GetQrcodeResponse) error }
type ReservationValidationError ¶
type ReservationValidationError struct {
// contains filtered or unexported fields
}
ReservationValidationError is the validation error returned by Reservation.Validate if the designated constraints aren't met.
func (ReservationValidationError) Cause ¶
func (e ReservationValidationError) Cause() error
Cause function returns cause value.
func (ReservationValidationError) Error ¶
func (e ReservationValidationError) Error() string
Error satisfies the builtin error interface
func (ReservationValidationError) ErrorName ¶
func (e ReservationValidationError) ErrorName() string
ErrorName returns error name.
func (ReservationValidationError) Field ¶
func (e ReservationValidationError) Field() string
Field function returns field value.
func (ReservationValidationError) Key ¶
func (e ReservationValidationError) Key() bool
Key function returns key value.
func (ReservationValidationError) Reason ¶
func (e ReservationValidationError) Reason() string
Reason function returns reason value.