Versions in this module Expand all Collapse all v0 v0.1.0 Feb 7, 2024 Changes in this version + const FakeServer_CreateOrder_FullMethodName + const FakeServer_DeleteOrder_FullMethodName + const FakeServer_GetOrder_FullMethodName + const FakeServer_ListOrder_FullMethodName + const FakeServer_UpdateOrder_FullMethodName + const OperationFakeServerCreateOrder + const OperationFakeServerDeleteOrder + const OperationFakeServerGetOrder + const OperationFakeServerListOrder + const OperationFakeServerUpdateOrder + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var FakeServer_ServiceDesc = grpc.ServiceDesc + var File_fakeserver_v1_errors_proto protoreflect.FileDescriptor + var File_fakeserver_v1_fakeserver_proto protoreflect.FileDescriptor + func ErrorOrderAlreadyExists(format string, args ...interface{}) *errors.Error + func ErrorOrderCreateFailed(format string, args ...interface{}) *errors.Error + func ErrorOrderNotFound(format string, args ...interface{}) *errors.Error + func IsOrderAlreadyExists(err error) bool + func IsOrderCreateFailed(err error) bool + func IsOrderNotFound(err error) bool + func RegisterFakeServerHTTPServer(s *http.Server, srv FakeServerHTTPServer) + func RegisterFakeServerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterFakeServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FakeServerClient) error + func RegisterFakeServerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterFakeServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FakeServerServer) error + func RegisterFakeServerServer(s grpc.ServiceRegistrar, srv FakeServerServer) + type CreateOrderRequest struct + Customer string + Product string + Quantity int64 + func (*CreateOrderRequest) Descriptor() ([]byte, []int) + func (*CreateOrderRequest) ProtoMessage() + func (m *CreateOrderRequest) Validate() error + func (m *CreateOrderRequest) ValidateAll() error + func (x *CreateOrderRequest) GetCustomer() string + func (x *CreateOrderRequest) GetProduct() string + func (x *CreateOrderRequest) GetQuantity() int64 + func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message + func (x *CreateOrderRequest) Reset() + func (x *CreateOrderRequest) String() string + type CreateOrderRequestMultiError []error + func (m CreateOrderRequestMultiError) AllErrors() []error + func (m CreateOrderRequestMultiError) Error() string + type CreateOrderRequestValidationError struct + func (e CreateOrderRequestValidationError) Cause() error + func (e CreateOrderRequestValidationError) Error() string + func (e CreateOrderRequestValidationError) ErrorName() string + func (e CreateOrderRequestValidationError) Field() string + func (e CreateOrderRequestValidationError) Key() bool + func (e CreateOrderRequestValidationError) Reason() string + type CreateOrderResponse struct + OrderID string + func (*CreateOrderResponse) Descriptor() ([]byte, []int) + func (*CreateOrderResponse) ProtoMessage() + func (m *CreateOrderResponse) Validate() error + func (m *CreateOrderResponse) ValidateAll() error + func (x *CreateOrderResponse) GetOrderID() string + func (x *CreateOrderResponse) ProtoReflect() protoreflect.Message + func (x *CreateOrderResponse) Reset() + func (x *CreateOrderResponse) String() string + type CreateOrderResponseMultiError []error + func (m CreateOrderResponseMultiError) AllErrors() []error + func (m CreateOrderResponseMultiError) Error() string + type CreateOrderResponseValidationError struct + func (e CreateOrderResponseValidationError) Cause() error + func (e CreateOrderResponseValidationError) Error() string + func (e CreateOrderResponseValidationError) ErrorName() string + func (e CreateOrderResponseValidationError) Field() string + func (e CreateOrderResponseValidationError) Key() bool + func (e CreateOrderResponseValidationError) Reason() string + type DeleteOrderRequest struct + OrderID string + func (*DeleteOrderRequest) Descriptor() ([]byte, []int) + func (*DeleteOrderRequest) ProtoMessage() + func (m *DeleteOrderRequest) Validate() error + func (m *DeleteOrderRequest) ValidateAll() error + func (x *DeleteOrderRequest) GetOrderID() string + func (x *DeleteOrderRequest) ProtoReflect() protoreflect.Message + func (x *DeleteOrderRequest) Reset() + func (x *DeleteOrderRequest) String() string + type DeleteOrderRequestMultiError []error + func (m DeleteOrderRequestMultiError) AllErrors() []error + func (m DeleteOrderRequestMultiError) Error() string + type DeleteOrderRequestValidationError struct + func (e DeleteOrderRequestValidationError) Cause() error + func (e DeleteOrderRequestValidationError) Error() string + func (e DeleteOrderRequestValidationError) ErrorName() string + func (e DeleteOrderRequestValidationError) Field() string + func (e DeleteOrderRequestValidationError) Key() bool + func (e DeleteOrderRequestValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_OrderAlreadyExists + const ErrorReason_OrderCreateFailed + const ErrorReason_OrderNotFound + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type FakeServerClient interface + CreateOrder func(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderResponse, error) + DeleteOrder func(ctx context.Context, in *DeleteOrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetOrder func(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*OrderReply, error) + ListOrder func(ctx context.Context, in *ListOrderRequest, opts ...grpc.CallOption) (*ListOrderResponse, error) + UpdateOrder func(ctx context.Context, in *UpdateOrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewFakeServerClient(cc grpc.ClientConnInterface) FakeServerClient + type FakeServerHTTPClient interface + CreateOrder func(ctx context.Context, req *CreateOrderRequest, opts ...http.CallOption) (rsp *CreateOrderResponse, err error) + DeleteOrder func(ctx context.Context, req *DeleteOrderRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + GetOrder func(ctx context.Context, req *GetOrderRequest, opts ...http.CallOption) (rsp *OrderReply, err error) + ListOrder func(ctx context.Context, req *ListOrderRequest, opts ...http.CallOption) (rsp *ListOrderResponse, err error) + UpdateOrder func(ctx context.Context, req *UpdateOrderRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + func NewFakeServerHTTPClient(client *http.Client) FakeServerHTTPClient + type FakeServerHTTPClientImpl struct + func (c *FakeServerHTTPClientImpl) CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...http.CallOption) (*CreateOrderResponse, error) + func (c *FakeServerHTTPClientImpl) DeleteOrder(ctx context.Context, in *DeleteOrderRequest, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *FakeServerHTTPClientImpl) GetOrder(ctx context.Context, in *GetOrderRequest, opts ...http.CallOption) (*OrderReply, error) + func (c *FakeServerHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderRequest, opts ...http.CallOption) (*ListOrderResponse, error) + func (c *FakeServerHTTPClientImpl) UpdateOrder(ctx context.Context, in *UpdateOrderRequest, opts ...http.CallOption) (*emptypb.Empty, error) + type FakeServerHTTPServer interface + CreateOrder func(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error) + DeleteOrder func(context.Context, *DeleteOrderRequest) (*emptypb.Empty, error) + GetOrder func(context.Context, *GetOrderRequest) (*OrderReply, error) + ListOrder func(context.Context, *ListOrderRequest) (*ListOrderResponse, error) + UpdateOrder func(context.Context, *UpdateOrderRequest) (*emptypb.Empty, error) + type FakeServerServer interface + CreateOrder func(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error) + DeleteOrder func(context.Context, *DeleteOrderRequest) (*emptypb.Empty, error) + GetOrder func(context.Context, *GetOrderRequest) (*OrderReply, error) + ListOrder func(context.Context, *ListOrderRequest) (*ListOrderResponse, error) + UpdateOrder func(context.Context, *UpdateOrderRequest) (*emptypb.Empty, error) + type GetOrderRequest struct + OrderID string + func (*GetOrderRequest) Descriptor() ([]byte, []int) + func (*GetOrderRequest) ProtoMessage() + func (m *GetOrderRequest) Validate() error + func (m *GetOrderRequest) ValidateAll() error + func (x *GetOrderRequest) GetOrderID() string + func (x *GetOrderRequest) ProtoReflect() protoreflect.Message + func (x *GetOrderRequest) Reset() + func (x *GetOrderRequest) String() string + type GetOrderRequestMultiError []error + func (m GetOrderRequestMultiError) AllErrors() []error + func (m GetOrderRequestMultiError) Error() string + type GetOrderRequestValidationError struct + func (e GetOrderRequestValidationError) Cause() error + func (e GetOrderRequestValidationError) Error() string + func (e GetOrderRequestValidationError) ErrorName() string + func (e GetOrderRequestValidationError) Field() string + func (e GetOrderRequestValidationError) Key() bool + func (e GetOrderRequestValidationError) Reason() string + type ListOrderRequest struct + Limit int64 + Offset int64 + func (*ListOrderRequest) Descriptor() ([]byte, []int) + func (*ListOrderRequest) ProtoMessage() + func (m *ListOrderRequest) Validate() error + func (m *ListOrderRequest) ValidateAll() error + func (x *ListOrderRequest) GetLimit() int64 + func (x *ListOrderRequest) GetOffset() int64 + func (x *ListOrderRequest) ProtoReflect() protoreflect.Message + func (x *ListOrderRequest) Reset() + func (x *ListOrderRequest) String() string + type ListOrderRequestMultiError []error + func (m ListOrderRequestMultiError) AllErrors() []error + func (m ListOrderRequestMultiError) Error() string + type ListOrderRequestValidationError struct + func (e ListOrderRequestValidationError) Cause() error + func (e ListOrderRequestValidationError) Error() string + func (e ListOrderRequestValidationError) ErrorName() string + func (e ListOrderRequestValidationError) Field() string + func (e ListOrderRequestValidationError) Key() bool + func (e ListOrderRequestValidationError) Reason() string + type ListOrderResponse struct + Orders []*OrderReply + TotalCount int64 + func (*ListOrderResponse) Descriptor() ([]byte, []int) + func (*ListOrderResponse) ProtoMessage() + func (m *ListOrderResponse) Validate() error + func (m *ListOrderResponse) ValidateAll() error + func (x *ListOrderResponse) GetOrders() []*OrderReply + func (x *ListOrderResponse) GetTotalCount() int64 + func (x *ListOrderResponse) ProtoReflect() protoreflect.Message + func (x *ListOrderResponse) Reset() + func (x *ListOrderResponse) String() string + type ListOrderResponseMultiError []error + func (m ListOrderResponseMultiError) AllErrors() []error + func (m ListOrderResponseMultiError) Error() string + type ListOrderResponseValidationError struct + func (e ListOrderResponseValidationError) Cause() error + func (e ListOrderResponseValidationError) Error() string + func (e ListOrderResponseValidationError) ErrorName() string + func (e ListOrderResponseValidationError) Field() string + func (e ListOrderResponseValidationError) Key() bool + func (e ListOrderResponseValidationError) Reason() string + type OrderReply struct + CreatedAt *timestamppb.Timestamp + Customer string + OrderID string + Product string + Quantity int64 + UpdatedAt *timestamppb.Timestamp + func (*OrderReply) Descriptor() ([]byte, []int) + func (*OrderReply) ProtoMessage() + func (m *OrderReply) Validate() error + func (m *OrderReply) ValidateAll() error + func (x *OrderReply) GetCreatedAt() *timestamppb.Timestamp + func (x *OrderReply) GetCustomer() string + func (x *OrderReply) GetOrderID() string + func (x *OrderReply) GetProduct() string + func (x *OrderReply) GetQuantity() int64 + func (x *OrderReply) GetUpdatedAt() *timestamppb.Timestamp + func (x *OrderReply) ProtoReflect() protoreflect.Message + func (x *OrderReply) Reset() + func (x *OrderReply) String() string + type OrderReplyMultiError []error + func (m OrderReplyMultiError) AllErrors() []error + func (m OrderReplyMultiError) Error() string + type OrderReplyValidationError struct + func (e OrderReplyValidationError) Cause() error + func (e OrderReplyValidationError) Error() string + func (e OrderReplyValidationError) ErrorName() string + func (e OrderReplyValidationError) Field() string + func (e OrderReplyValidationError) Key() bool + func (e OrderReplyValidationError) Reason() string + type UnimplementedFakeServerServer struct + func (UnimplementedFakeServerServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error) + func (UnimplementedFakeServerServer) DeleteOrder(context.Context, *DeleteOrderRequest) (*emptypb.Empty, error) + func (UnimplementedFakeServerServer) GetOrder(context.Context, *GetOrderRequest) (*OrderReply, error) + func (UnimplementedFakeServerServer) ListOrder(context.Context, *ListOrderRequest) (*ListOrderResponse, error) + func (UnimplementedFakeServerServer) UpdateOrder(context.Context, *UpdateOrderRequest) (*emptypb.Empty, error) + type UnsafeFakeServerServer interface + type UpdateOrderRequest struct + Customer *string + OrderID string + Product *string + Quantity *int64 + func (*UpdateOrderRequest) Descriptor() ([]byte, []int) + func (*UpdateOrderRequest) ProtoMessage() + func (m *UpdateOrderRequest) Validate() error + func (m *UpdateOrderRequest) ValidateAll() error + func (x *UpdateOrderRequest) GetCustomer() string + func (x *UpdateOrderRequest) GetOrderID() string + func (x *UpdateOrderRequest) GetProduct() string + func (x *UpdateOrderRequest) GetQuantity() int64 + func (x *UpdateOrderRequest) ProtoReflect() protoreflect.Message + func (x *UpdateOrderRequest) Reset() + func (x *UpdateOrderRequest) String() string + type UpdateOrderRequestMultiError []error + func (m UpdateOrderRequestMultiError) AllErrors() []error + func (m UpdateOrderRequestMultiError) Error() string + type UpdateOrderRequestValidationError struct + func (e UpdateOrderRequestValidationError) Cause() error + func (e UpdateOrderRequestValidationError) Error() string + func (e UpdateOrderRequestValidationError) ErrorName() string + func (e UpdateOrderRequestValidationError) Field() string + func (e UpdateOrderRequestValidationError) Key() bool + func (e UpdateOrderRequestValidationError) Reason() string