booking

package
v2.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBookingServiceEndpoints

func NewBookingServiceEndpoints() []*api.Endpoint

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 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

Cause function returns cause value.

func (CreateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRequestValidationError) ErrorName

func (e CreateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRequestValidationError) Field

Field function returns field value.

func (CreateRequestValidationError) Key

Key function returns key value.

func (CreateRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateRequest_CustomerValidationError) Error

Error satisfies the builtin error interface

func (CreateRequest_CustomerValidationError) ErrorName

ErrorName returns error name.

func (CreateRequest_CustomerValidationError) Field

Field function returns field value.

func (CreateRequest_CustomerValidationError) Key

Key function returns key value.

func (CreateRequest_CustomerValidationError) Reason

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 (*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

Cause function returns cause value.

func (CustomerUpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (CustomerUpdateRequestValidationError) ErrorName

ErrorName returns error name.

func (CustomerUpdateRequestValidationError) Field

Field function returns field value.

func (CustomerUpdateRequestValidationError) Key

Key function returns key value.

func (CustomerUpdateRequestValidationError) Reason

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 (*CustomerUpdateRequest_Customer) ProtoMessage

func (*CustomerUpdateRequest_Customer) ProtoMessage()

func (*CustomerUpdateRequest_Customer) Reset

func (m *CustomerUpdateRequest_Customer) Reset()

func (*CustomerUpdateRequest_Customer) 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

Cause function returns cause value.

func (CustomerUpdateRequest_CustomerValidationError) Error

Error satisfies the builtin error interface

func (CustomerUpdateRequest_CustomerValidationError) ErrorName

ErrorName returns error name.

func (CustomerUpdateRequest_CustomerValidationError) Field

Field function returns field value.

func (CustomerUpdateRequest_CustomerValidationError) Key

Key function returns key value.

func (CustomerUpdateRequest_CustomerValidationError) Reason

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) Descriptor() ([]byte, []int)

func (*Request) GetUuid

func (m *Request) GetUuid() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

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 (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL