Documentation ¶
Index ¶
- func NewReservationServiceEndpoints() []*api.Endpoint
- func RegisterReservationServiceHandler(s server.Server, hdlr ReservationServiceHandler, opts ...server.HandlerOption) error
- type ReservationCheckRequest
- func (*ReservationCheckRequest) Descriptor() ([]byte, []int)
- func (m *ReservationCheckRequest) GetDate() string
- func (m *ReservationCheckRequest) GetHangedAfterSec() int64
- func (m *ReservationCheckRequest) GetRetries() int64
- func (m *ReservationCheckRequest) GetUntilAutoCancelingSec() int64
- func (*ReservationCheckRequest) ProtoMessage()
- func (m *ReservationCheckRequest) Reset()
- func (m *ReservationCheckRequest) String() string
- func (m *ReservationCheckRequest) Validate() error
- func (m *ReservationCheckRequest) XXX_DiscardUnknown()
- func (m *ReservationCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReservationCheckRequest) XXX_Merge(src proto.Message)
- func (m *ReservationCheckRequest) XXX_Size() int
- func (m *ReservationCheckRequest) XXX_Unmarshal(b []byte) error
- type ReservationCheckRequestValidationError
- func (e ReservationCheckRequestValidationError) Cause() error
- func (e ReservationCheckRequestValidationError) Error() string
- func (e ReservationCheckRequestValidationError) ErrorName() string
- func (e ReservationCheckRequestValidationError) Field() string
- func (e ReservationCheckRequestValidationError) Key() bool
- func (e ReservationCheckRequestValidationError) Reason() string
- type ReservationCheckResponse
- func (*ReservationCheckResponse) Descriptor() ([]byte, []int)
- func (*ReservationCheckResponse) ProtoMessage()
- func (m *ReservationCheckResponse) Reset()
- func (m *ReservationCheckResponse) String() string
- func (m *ReservationCheckResponse) Validate() error
- func (m *ReservationCheckResponse) XXX_DiscardUnknown()
- func (m *ReservationCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReservationCheckResponse) XXX_Merge(src proto.Message)
- func (m *ReservationCheckResponse) XXX_Size() int
- func (m *ReservationCheckResponse) XXX_Unmarshal(b []byte) error
- type ReservationCheckResponseValidationError
- func (e ReservationCheckResponseValidationError) Cause() error
- func (e ReservationCheckResponseValidationError) Error() string
- func (e ReservationCheckResponseValidationError) ErrorName() string
- func (e ReservationCheckResponseValidationError) Field() string
- func (e ReservationCheckResponseValidationError) Key() bool
- func (e ReservationCheckResponseValidationError) Reason() string
- type ReservationService
- type ReservationServiceHandler
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 ReservationCheckRequest ¶
type ReservationCheckRequest struct { Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date"` HangedAfterSec int64 `protobuf:"varint,2,opt,name=hanged_after_sec,json=hangedAfterSec,proto3" json:"hanged_after_sec"` UntilAutoCancelingSec int64 `protobuf:"varint,3,opt,name=until_auto_canceling_sec,json=untilAutoCancelingSec,proto3" json:"until_auto_canceling_sec"` Retries int64 `protobuf:"varint,4,opt,name=retries,proto3" json:"retries"` }
func (*ReservationCheckRequest) Descriptor ¶
func (*ReservationCheckRequest) Descriptor() ([]byte, []int)
func (*ReservationCheckRequest) GetDate ¶
func (m *ReservationCheckRequest) GetDate() string
func (*ReservationCheckRequest) GetHangedAfterSec ¶
func (m *ReservationCheckRequest) GetHangedAfterSec() int64
func (*ReservationCheckRequest) GetRetries ¶
func (m *ReservationCheckRequest) GetRetries() int64
func (*ReservationCheckRequest) GetUntilAutoCancelingSec ¶
func (m *ReservationCheckRequest) GetUntilAutoCancelingSec() int64
func (*ReservationCheckRequest) ProtoMessage ¶
func (*ReservationCheckRequest) ProtoMessage()
func (*ReservationCheckRequest) Reset ¶
func (m *ReservationCheckRequest) Reset()
func (*ReservationCheckRequest) String ¶
func (m *ReservationCheckRequest) String() string
func (*ReservationCheckRequest) Validate ¶
func (m *ReservationCheckRequest) Validate() error
Validate checks the field values on ReservationCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ReservationCheckRequest) XXX_DiscardUnknown ¶
func (m *ReservationCheckRequest) XXX_DiscardUnknown()
func (*ReservationCheckRequest) XXX_Marshal ¶
func (m *ReservationCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReservationCheckRequest) XXX_Merge ¶
func (m *ReservationCheckRequest) XXX_Merge(src proto.Message)
func (*ReservationCheckRequest) XXX_Size ¶
func (m *ReservationCheckRequest) XXX_Size() int
func (*ReservationCheckRequest) XXX_Unmarshal ¶
func (m *ReservationCheckRequest) XXX_Unmarshal(b []byte) error
type ReservationCheckRequestValidationError ¶
type ReservationCheckRequestValidationError struct {
// contains filtered or unexported fields
}
ReservationCheckRequestValidationError is the validation error returned by ReservationCheckRequest.Validate if the designated constraints aren't met.
func (ReservationCheckRequestValidationError) Cause ¶
func (e ReservationCheckRequestValidationError) Cause() error
Cause function returns cause value.
func (ReservationCheckRequestValidationError) Error ¶
func (e ReservationCheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReservationCheckRequestValidationError) ErrorName ¶
func (e ReservationCheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReservationCheckRequestValidationError) Field ¶
func (e ReservationCheckRequestValidationError) Field() string
Field function returns field value.
func (ReservationCheckRequestValidationError) Key ¶
func (e ReservationCheckRequestValidationError) Key() bool
Key function returns key value.
func (ReservationCheckRequestValidationError) Reason ¶
func (e ReservationCheckRequestValidationError) Reason() string
Reason function returns reason value.
type ReservationCheckResponse ¶
type ReservationCheckResponse struct { }
func (*ReservationCheckResponse) Descriptor ¶
func (*ReservationCheckResponse) Descriptor() ([]byte, []int)
func (*ReservationCheckResponse) ProtoMessage ¶
func (*ReservationCheckResponse) ProtoMessage()
func (*ReservationCheckResponse) Reset ¶
func (m *ReservationCheckResponse) Reset()
func (*ReservationCheckResponse) String ¶
func (m *ReservationCheckResponse) String() string
func (*ReservationCheckResponse) Validate ¶
func (m *ReservationCheckResponse) Validate() error
Validate checks the field values on ReservationCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ReservationCheckResponse) XXX_DiscardUnknown ¶
func (m *ReservationCheckResponse) XXX_DiscardUnknown()
func (*ReservationCheckResponse) XXX_Marshal ¶
func (m *ReservationCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReservationCheckResponse) XXX_Merge ¶
func (m *ReservationCheckResponse) XXX_Merge(src proto.Message)
func (*ReservationCheckResponse) XXX_Size ¶
func (m *ReservationCheckResponse) XXX_Size() int
func (*ReservationCheckResponse) XXX_Unmarshal ¶
func (m *ReservationCheckResponse) XXX_Unmarshal(b []byte) error
type ReservationCheckResponseValidationError ¶
type ReservationCheckResponseValidationError struct {
// contains filtered or unexported fields
}
ReservationCheckResponseValidationError is the validation error returned by ReservationCheckResponse.Validate if the designated constraints aren't met.
func (ReservationCheckResponseValidationError) Cause ¶
func (e ReservationCheckResponseValidationError) Cause() error
Cause function returns cause value.
func (ReservationCheckResponseValidationError) Error ¶
func (e ReservationCheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReservationCheckResponseValidationError) ErrorName ¶
func (e ReservationCheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReservationCheckResponseValidationError) Field ¶
func (e ReservationCheckResponseValidationError) Field() string
Field function returns field value.
func (ReservationCheckResponseValidationError) Key ¶
func (e ReservationCheckResponseValidationError) Key() bool
Key function returns key value.
func (ReservationCheckResponseValidationError) Reason ¶
func (e ReservationCheckResponseValidationError) Reason() string
Reason function returns reason value.
type ReservationService ¶
type ReservationService interface {
Check(ctx context.Context, in *ReservationCheckRequest, opts ...client.CallOption) (*ReservationCheckResponse, error)
}
func NewReservationService ¶
func NewReservationService(name string, c client.Client) ReservationService
type ReservationServiceHandler ¶
type ReservationServiceHandler interface {
Check(context.Context, *ReservationCheckRequest, *ReservationCheckResponse) error
}