Documentation ¶
Index ¶
- func NewBookingServiceEndpoints() []*api.Endpoint
- func RegisterBookingServiceHandler(s server.Server, hdlr BookingServiceHandler, opts ...server.HandlerOption) error
- type BookingService
- type BookingServiceHandler
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetCustomer() *CreateRequest_Customer
- func (m *CreateRequest) GetPayload() *types.Struct
- func (m *CreateRequest) GetSubject() string
- func (m *CreateRequest) GetType() string
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) String() string
- func (m *CreateRequest) Validate() error
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateRequestValidationError
- func (e CreateRequestValidationError) Cause() error
- func (e CreateRequestValidationError) Error() string
- func (e CreateRequestValidationError) ErrorName() string
- func (e CreateRequestValidationError) Field() string
- func (e CreateRequestValidationError) Key() bool
- func (e CreateRequestValidationError) Reason() string
- type CreateRequest_Customer
- func (*CreateRequest_Customer) Descriptor() ([]byte, []int)
- func (m *CreateRequest_Customer) GetEmail() string
- func (m *CreateRequest_Customer) GetPhone() string
- func (m *CreateRequest_Customer) GetUuid() string
- func (*CreateRequest_Customer) ProtoMessage()
- func (m *CreateRequest_Customer) Reset()
- func (m *CreateRequest_Customer) String() string
- func (m *CreateRequest_Customer) Validate() error
- func (m *CreateRequest_Customer) XXX_DiscardUnknown()
- func (m *CreateRequest_Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest_Customer) XXX_Merge(src proto.Message)
- func (m *CreateRequest_Customer) XXX_Size() int
- func (m *CreateRequest_Customer) XXX_Unmarshal(b []byte) error
- type CreateRequest_CustomerValidationError
- func (e CreateRequest_CustomerValidationError) Cause() error
- func (e CreateRequest_CustomerValidationError) Error() string
- func (e CreateRequest_CustomerValidationError) ErrorName() string
- func (e CreateRequest_CustomerValidationError) Field() string
- func (e CreateRequest_CustomerValidationError) Key() bool
- func (e CreateRequest_CustomerValidationError) Reason() string
- type CustomerUpdateRequest
- func (*CustomerUpdateRequest) Descriptor() ([]byte, []int)
- func (m *CustomerUpdateRequest) GetCustomer() *CustomerUpdateRequest_Customer
- func (m *CustomerUpdateRequest) GetUuid() string
- func (*CustomerUpdateRequest) ProtoMessage()
- func (m *CustomerUpdateRequest) Reset()
- func (m *CustomerUpdateRequest) String() string
- func (m *CustomerUpdateRequest) Validate() error
- func (m *CustomerUpdateRequest) XXX_DiscardUnknown()
- func (m *CustomerUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomerUpdateRequest) XXX_Merge(src proto.Message)
- func (m *CustomerUpdateRequest) XXX_Size() int
- func (m *CustomerUpdateRequest) XXX_Unmarshal(b []byte) error
- type CustomerUpdateRequestValidationError
- func (e CustomerUpdateRequestValidationError) Cause() error
- func (e CustomerUpdateRequestValidationError) Error() string
- func (e CustomerUpdateRequestValidationError) ErrorName() string
- func (e CustomerUpdateRequestValidationError) Field() string
- func (e CustomerUpdateRequestValidationError) Key() bool
- func (e CustomerUpdateRequestValidationError) Reason() string
- type CustomerUpdateRequest_Customer
- func (*CustomerUpdateRequest_Customer) Descriptor() ([]byte, []int)
- func (m *CustomerUpdateRequest_Customer) GetEmail() string
- func (m *CustomerUpdateRequest_Customer) GetPhone() string
- func (m *CustomerUpdateRequest_Customer) GetUuid() string
- func (*CustomerUpdateRequest_Customer) ProtoMessage()
- func (m *CustomerUpdateRequest_Customer) Reset()
- func (m *CustomerUpdateRequest_Customer) String() string
- func (m *CustomerUpdateRequest_Customer) Validate() error
- func (m *CustomerUpdateRequest_Customer) XXX_DiscardUnknown()
- func (m *CustomerUpdateRequest_Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomerUpdateRequest_Customer) XXX_Merge(src proto.Message)
- func (m *CustomerUpdateRequest_Customer) XXX_Size() int
- func (m *CustomerUpdateRequest_Customer) XXX_Unmarshal(b []byte) error
- type CustomerUpdateRequest_CustomerValidationError
- func (e CustomerUpdateRequest_CustomerValidationError) Cause() error
- func (e CustomerUpdateRequest_CustomerValidationError) Error() string
- func (e CustomerUpdateRequest_CustomerValidationError) ErrorName() string
- func (e CustomerUpdateRequest_CustomerValidationError) Field() string
- func (e CustomerUpdateRequest_CustomerValidationError) Key() bool
- func (e CustomerUpdateRequest_CustomerValidationError) Reason() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetUuid() 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBookingServiceHandler ¶
func RegisterBookingServiceHandler(s server.Server, hdlr BookingServiceHandler, opts ...server.HandlerOption) error
Types ¶
type BookingService ¶
type BookingService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*shared.StatusResponse, error) CreateMenu(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*shared.StatusResponse, error) CustomerUpdate(ctx context.Context, in *CustomerUpdateRequest, opts ...client.CallOption) (*shared.StatusResponse, error) Status(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) }
func NewBookingService ¶
func NewBookingService(name string, c client.Client) BookingService
type BookingServiceHandler ¶
type BookingServiceHandler interface { Create(context.Context, *CreateRequest, *shared.StatusResponse) error CreateMenu(context.Context, *CreateRequest, *shared.StatusResponse) error CustomerUpdate(context.Context, *CustomerUpdateRequest, *shared.StatusResponse) error Status(context.Context, *Request, *shared.StatusResponse) error }
type CreateRequest ¶
type CreateRequest struct { Payload *types.Struct `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Customer *CreateRequest_Customer `protobuf:"bytes,3,opt,name=customer,proto3" json:"customer,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetCustomer ¶
func (m *CreateRequest) GetCustomer() *CreateRequest_Customer
func (*CreateRequest) GetPayload ¶
func (m *CreateRequest) GetPayload() *types.Struct
func (*CreateRequest) GetSubject ¶
func (m *CreateRequest) GetSubject() string
func (*CreateRequest) GetType ¶
func (m *CreateRequest) GetType() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) Validate ¶
func (m *CreateRequest) Validate() error
Validate checks the field values on CreateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateRequestValidationError ¶
type CreateRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.
func (CreateRequestValidationError) Cause ¶
func (e CreateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRequestValidationError) Error ¶
func (e CreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequestValidationError) ErrorName ¶
func (e CreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequestValidationError) Field ¶
func (e CreateRequestValidationError) Field() string
Field function returns field value.
func (CreateRequestValidationError) Key ¶
func (e CreateRequestValidationError) Key() bool
Key function returns key value.
func (CreateRequestValidationError) Reason ¶
func (e CreateRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRequest_Customer ¶
type CreateRequest_Customer struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` }
func (*CreateRequest_Customer) Descriptor ¶
func (*CreateRequest_Customer) Descriptor() ([]byte, []int)
func (*CreateRequest_Customer) GetEmail ¶
func (m *CreateRequest_Customer) GetEmail() string
func (*CreateRequest_Customer) GetPhone ¶
func (m *CreateRequest_Customer) GetPhone() string
func (*CreateRequest_Customer) GetUuid ¶
func (m *CreateRequest_Customer) GetUuid() string
func (*CreateRequest_Customer) ProtoMessage ¶
func (*CreateRequest_Customer) ProtoMessage()
func (*CreateRequest_Customer) Reset ¶
func (m *CreateRequest_Customer) Reset()
func (*CreateRequest_Customer) String ¶
func (m *CreateRequest_Customer) String() string
func (*CreateRequest_Customer) Validate ¶
func (m *CreateRequest_Customer) Validate() error
Validate checks the field values on CreateRequest_Customer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateRequest_Customer) XXX_DiscardUnknown ¶
func (m *CreateRequest_Customer) XXX_DiscardUnknown()
func (*CreateRequest_Customer) XXX_Marshal ¶
func (m *CreateRequest_Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest_Customer) XXX_Merge ¶
func (m *CreateRequest_Customer) XXX_Merge(src proto.Message)
func (*CreateRequest_Customer) XXX_Size ¶
func (m *CreateRequest_Customer) XXX_Size() int
func (*CreateRequest_Customer) XXX_Unmarshal ¶
func (m *CreateRequest_Customer) XXX_Unmarshal(b []byte) error
type CreateRequest_CustomerValidationError ¶
type CreateRequest_CustomerValidationError struct {
// contains filtered or unexported fields
}
CreateRequest_CustomerValidationError is the validation error returned by CreateRequest_Customer.Validate if the designated constraints aren't met.
func (CreateRequest_CustomerValidationError) Cause ¶
func (e CreateRequest_CustomerValidationError) Cause() error
Cause function returns cause value.
func (CreateRequest_CustomerValidationError) Error ¶
func (e CreateRequest_CustomerValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequest_CustomerValidationError) ErrorName ¶
func (e CreateRequest_CustomerValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequest_CustomerValidationError) Field ¶
func (e CreateRequest_CustomerValidationError) Field() string
Field function returns field value.
func (CreateRequest_CustomerValidationError) Key ¶
func (e CreateRequest_CustomerValidationError) Key() bool
Key function returns key value.
func (CreateRequest_CustomerValidationError) Reason ¶
func (e CreateRequest_CustomerValidationError) Reason() string
Reason function returns reason value.
type CustomerUpdateRequest ¶
type CustomerUpdateRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Customer *CustomerUpdateRequest_Customer `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"` }
func (*CustomerUpdateRequest) Descriptor ¶
func (*CustomerUpdateRequest) Descriptor() ([]byte, []int)
func (*CustomerUpdateRequest) GetCustomer ¶
func (m *CustomerUpdateRequest) GetCustomer() *CustomerUpdateRequest_Customer
func (*CustomerUpdateRequest) GetUuid ¶
func (m *CustomerUpdateRequest) GetUuid() string
func (*CustomerUpdateRequest) ProtoMessage ¶
func (*CustomerUpdateRequest) ProtoMessage()
func (*CustomerUpdateRequest) Reset ¶
func (m *CustomerUpdateRequest) Reset()
func (*CustomerUpdateRequest) String ¶
func (m *CustomerUpdateRequest) String() string
func (*CustomerUpdateRequest) Validate ¶
func (m *CustomerUpdateRequest) Validate() error
Validate checks the field values on CustomerUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CustomerUpdateRequest) XXX_DiscardUnknown ¶
func (m *CustomerUpdateRequest) XXX_DiscardUnknown()
func (*CustomerUpdateRequest) XXX_Marshal ¶
func (m *CustomerUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomerUpdateRequest) XXX_Merge ¶
func (m *CustomerUpdateRequest) XXX_Merge(src proto.Message)
func (*CustomerUpdateRequest) XXX_Size ¶
func (m *CustomerUpdateRequest) XXX_Size() int
func (*CustomerUpdateRequest) XXX_Unmarshal ¶
func (m *CustomerUpdateRequest) XXX_Unmarshal(b []byte) error
type CustomerUpdateRequestValidationError ¶
type CustomerUpdateRequestValidationError struct {
// contains filtered or unexported fields
}
CustomerUpdateRequestValidationError is the validation error returned by CustomerUpdateRequest.Validate if the designated constraints aren't met.
func (CustomerUpdateRequestValidationError) Cause ¶
func (e CustomerUpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (CustomerUpdateRequestValidationError) Error ¶
func (e CustomerUpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CustomerUpdateRequestValidationError) ErrorName ¶
func (e CustomerUpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CustomerUpdateRequestValidationError) Field ¶
func (e CustomerUpdateRequestValidationError) Field() string
Field function returns field value.
func (CustomerUpdateRequestValidationError) Key ¶
func (e CustomerUpdateRequestValidationError) Key() bool
Key function returns key value.
func (CustomerUpdateRequestValidationError) Reason ¶
func (e CustomerUpdateRequestValidationError) Reason() string
Reason function returns reason value.
type CustomerUpdateRequest_Customer ¶
type CustomerUpdateRequest_Customer struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` }
func (*CustomerUpdateRequest_Customer) Descriptor ¶
func (*CustomerUpdateRequest_Customer) Descriptor() ([]byte, []int)
func (*CustomerUpdateRequest_Customer) GetEmail ¶
func (m *CustomerUpdateRequest_Customer) GetEmail() string
func (*CustomerUpdateRequest_Customer) GetPhone ¶
func (m *CustomerUpdateRequest_Customer) GetPhone() string
func (*CustomerUpdateRequest_Customer) GetUuid ¶
func (m *CustomerUpdateRequest_Customer) GetUuid() string
func (*CustomerUpdateRequest_Customer) ProtoMessage ¶
func (*CustomerUpdateRequest_Customer) ProtoMessage()
func (*CustomerUpdateRequest_Customer) Reset ¶
func (m *CustomerUpdateRequest_Customer) Reset()
func (*CustomerUpdateRequest_Customer) String ¶
func (m *CustomerUpdateRequest_Customer) String() string
func (*CustomerUpdateRequest_Customer) Validate ¶
func (m *CustomerUpdateRequest_Customer) Validate() error
Validate checks the field values on CustomerUpdateRequest_Customer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CustomerUpdateRequest_Customer) XXX_DiscardUnknown ¶
func (m *CustomerUpdateRequest_Customer) XXX_DiscardUnknown()
func (*CustomerUpdateRequest_Customer) XXX_Marshal ¶
func (m *CustomerUpdateRequest_Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomerUpdateRequest_Customer) XXX_Merge ¶
func (m *CustomerUpdateRequest_Customer) XXX_Merge(src proto.Message)
func (*CustomerUpdateRequest_Customer) XXX_Size ¶
func (m *CustomerUpdateRequest_Customer) XXX_Size() int
func (*CustomerUpdateRequest_Customer) XXX_Unmarshal ¶
func (m *CustomerUpdateRequest_Customer) XXX_Unmarshal(b []byte) error
type CustomerUpdateRequest_CustomerValidationError ¶
type CustomerUpdateRequest_CustomerValidationError struct {
// contains filtered or unexported fields
}
CustomerUpdateRequest_CustomerValidationError is the validation error returned by CustomerUpdateRequest_Customer.Validate if the designated constraints aren't met.
func (CustomerUpdateRequest_CustomerValidationError) Cause ¶
func (e CustomerUpdateRequest_CustomerValidationError) Cause() error
Cause function returns cause value.
func (CustomerUpdateRequest_CustomerValidationError) Error ¶
func (e CustomerUpdateRequest_CustomerValidationError) Error() string
Error satisfies the builtin error interface
func (CustomerUpdateRequest_CustomerValidationError) ErrorName ¶
func (e CustomerUpdateRequest_CustomerValidationError) ErrorName() string
ErrorName returns error name.
func (CustomerUpdateRequest_CustomerValidationError) Field ¶
func (e CustomerUpdateRequest_CustomerValidationError) Field() string
Field function returns field value.
func (CustomerUpdateRequest_CustomerValidationError) Key ¶
func (e CustomerUpdateRequest_CustomerValidationError) Key() bool
Key function returns key value.
func (CustomerUpdateRequest_CustomerValidationError) Reason ¶
func (e CustomerUpdateRequest_CustomerValidationError) Reason() string
Reason function returns reason value.
type Request ¶
type Request struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}
func (*Request) Descriptor ¶
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.