Documentation
¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- func RegisterHealthcheckServiceServer(s grpc.ServiceRegistrar, srv HealthcheckServiceServer)
- func RegisterOrderHistoryServiceServer(s grpc.ServiceRegistrar, srv OrderHistoryServiceServer)
- func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)
- type CreateCustomerReply
- func (*CreateCustomerReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerReply) GetCustomerId() string
- func (*CreateCustomerReply) ProtoMessage()
- func (x *CreateCustomerReply) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerReply) Reset()
- func (x *CreateCustomerReply) String() string
- func (m *CreateCustomerReply) Validate() error
- func (m *CreateCustomerReply) ValidateAll() error
- type CreateCustomerReplyMultiError
- type CreateCustomerReplyValidationError
- func (e CreateCustomerReplyValidationError) Cause() error
- func (e CreateCustomerReplyValidationError) Error() string
- func (e CreateCustomerReplyValidationError) ErrorName() string
- func (e CreateCustomerReplyValidationError) Field() string
- func (e CreateCustomerReplyValidationError) Key() bool
- func (e CreateCustomerReplyValidationError) Reason() string
- type CreateCustomerRequest
- func (*CreateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerRequest) GetAmount() int32
- func (x *CreateCustomerRequest) GetName() string
- func (*CreateCustomerRequest) ProtoMessage()
- func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerRequest) Reset()
- func (x *CreateCustomerRequest) String() string
- func (m *CreateCustomerRequest) Validate() error
- func (m *CreateCustomerRequest) ValidateAll() error
- type CreateCustomerRequestMultiError
- type CreateCustomerRequestValidationError
- func (e CreateCustomerRequestValidationError) Cause() error
- func (e CreateCustomerRequestValidationError) Error() string
- func (e CreateCustomerRequestValidationError) ErrorName() string
- func (e CreateCustomerRequestValidationError) Field() string
- func (e CreateCustomerRequestValidationError) Key() bool
- func (e CreateCustomerRequestValidationError) Reason() string
- type CreateOrderReply
- func (*CreateOrderReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderReply) GetId() string
- func (*CreateOrderReply) ProtoMessage()
- func (x *CreateOrderReply) ProtoReflect() protoreflect.Message
- func (x *CreateOrderReply) Reset()
- func (x *CreateOrderReply) String() string
- func (m *CreateOrderReply) Validate() error
- func (m *CreateOrderReply) ValidateAll() error
- type CreateOrderReplyMultiError
- type CreateOrderReplyValidationError
- func (e CreateOrderReplyValidationError) Cause() error
- func (e CreateOrderReplyValidationError) Error() string
- func (e CreateOrderReplyValidationError) ErrorName() string
- func (e CreateOrderReplyValidationError) Field() string
- func (e CreateOrderReplyValidationError) Key() bool
- func (e CreateOrderReplyValidationError) Reason() string
- type CreateOrderRequest
- func (*CreateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderRequest) GetCustomerId() string
- func (x *CreateOrderRequest) GetOrderDetail() *OrderDetail
- func (*CreateOrderRequest) ProtoMessage()
- func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrderRequest) Reset()
- func (x *CreateOrderRequest) String() string
- func (m *CreateOrderRequest) Validate() error
- func (m *CreateOrderRequest) ValidateAll() error
- type CreateOrderRequestMultiError
- type CreateOrderRequestValidationError
- 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 CreditLimit
- func (*CreditLimit) Descriptor() ([]byte, []int)deprecated
- func (x *CreditLimit) GetAmount() string
- func (*CreditLimit) ProtoMessage()
- func (x *CreditLimit) ProtoReflect() protoreflect.Message
- func (x *CreditLimit) Reset()
- func (x *CreditLimit) String() string
- func (m *CreditLimit) Validate() error
- func (m *CreditLimit) ValidateAll() error
- type CreditLimitMultiError
- type CreditLimitValidationError
- func (e CreditLimitValidationError) Cause() error
- func (e CreditLimitValidationError) Error() string
- func (e CreditLimitValidationError) ErrorName() string
- func (e CreditLimitValidationError) Field() string
- func (e CreditLimitValidationError) Key() bool
- func (e CreditLimitValidationError) Reason() string
- type CustomerServiceClient
- type CustomerServiceServer
- type GetOrderHistoryReply
- func (*GetOrderHistoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderHistoryReply) GetCreditLimit() *CreditLimit
- func (x *GetOrderHistoryReply) GetCustomerId() string
- func (x *GetOrderHistoryReply) GetName() string
- func (x *GetOrderHistoryReply) GetOrders() []*Order
- func (*GetOrderHistoryReply) ProtoMessage()
- func (x *GetOrderHistoryReply) ProtoReflect() protoreflect.Message
- func (x *GetOrderHistoryReply) Reset()
- func (x *GetOrderHistoryReply) String() string
- func (m *GetOrderHistoryReply) Validate() error
- func (m *GetOrderHistoryReply) ValidateAll() error
- type GetOrderHistoryReplyMultiError
- type GetOrderHistoryReplyValidationError
- func (e GetOrderHistoryReplyValidationError) Cause() error
- func (e GetOrderHistoryReplyValidationError) Error() string
- func (e GetOrderHistoryReplyValidationError) ErrorName() string
- func (e GetOrderHistoryReplyValidationError) Field() string
- func (e GetOrderHistoryReplyValidationError) Key() bool
- func (e GetOrderHistoryReplyValidationError) Reason() string
- type GetOrderHistoryRequest
- func (*GetOrderHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderHistoryRequest) GetCustomerId() string
- func (*GetOrderHistoryRequest) ProtoMessage()
- func (x *GetOrderHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderHistoryRequest) Reset()
- func (x *GetOrderHistoryRequest) String() string
- func (m *GetOrderHistoryRequest) Validate() error
- func (m *GetOrderHistoryRequest) ValidateAll() error
- type GetOrderHistoryRequestMultiError
- type GetOrderHistoryRequestValidationError
- func (e GetOrderHistoryRequestValidationError) Cause() error
- func (e GetOrderHistoryRequestValidationError) Error() string
- func (e GetOrderHistoryRequestValidationError) ErrorName() string
- func (e GetOrderHistoryRequestValidationError) Field() string
- func (e GetOrderHistoryRequestValidationError) Key() bool
- func (e GetOrderHistoryRequestValidationError) Reason() string
- type GetOrderStatusReply
- func (*GetOrderStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderStatusReply) GetId() string
- func (x *GetOrderStatusReply) GetState() string
- func (*GetOrderStatusReply) ProtoMessage()
- func (x *GetOrderStatusReply) ProtoReflect() protoreflect.Message
- func (x *GetOrderStatusReply) Reset()
- func (x *GetOrderStatusReply) String() string
- func (m *GetOrderStatusReply) Validate() error
- func (m *GetOrderStatusReply) ValidateAll() error
- type GetOrderStatusReplyMultiError
- type GetOrderStatusReplyValidationError
- func (e GetOrderStatusReplyValidationError) Cause() error
- func (e GetOrderStatusReplyValidationError) Error() string
- func (e GetOrderStatusReplyValidationError) ErrorName() string
- func (e GetOrderStatusReplyValidationError) Field() string
- func (e GetOrderStatusReplyValidationError) Key() bool
- func (e GetOrderStatusReplyValidationError) Reason() string
- type GetOrderStatusRequest
- func (*GetOrderStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderStatusRequest) GetId() string
- func (*GetOrderStatusRequest) ProtoMessage()
- func (x *GetOrderStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderStatusRequest) Reset()
- func (x *GetOrderStatusRequest) String() string
- func (m *GetOrderStatusRequest) Validate() error
- func (m *GetOrderStatusRequest) ValidateAll() error
- type GetOrderStatusRequestMultiError
- type GetOrderStatusRequestValidationError
- func (e GetOrderStatusRequestValidationError) Cause() error
- func (e GetOrderStatusRequestValidationError) Error() string
- func (e GetOrderStatusRequestValidationError) ErrorName() string
- func (e GetOrderStatusRequestValidationError) Field() string
- func (e GetOrderStatusRequestValidationError) Key() bool
- func (e GetOrderStatusRequestValidationError) Reason() string
- type GetVersionReply
- func (*GetVersionReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionReply) GetVersion() string
- func (*GetVersionReply) ProtoMessage()
- func (x *GetVersionReply) ProtoReflect() protoreflect.Message
- func (x *GetVersionReply) Reset()
- func (x *GetVersionReply) String() string
- func (m *GetVersionReply) Validate() error
- func (m *GetVersionReply) ValidateAll() error
- type GetVersionReplyMultiError
- type GetVersionReplyValidationError
- func (e GetVersionReplyValidationError) Cause() error
- func (e GetVersionReplyValidationError) Error() string
- func (e GetVersionReplyValidationError) ErrorName() string
- func (e GetVersionReplyValidationError) Field() string
- func (e GetVersionReplyValidationError) Key() bool
- func (e GetVersionReplyValidationError) Reason() string
- type HealthcheckServiceClient
- type HealthcheckServiceServer
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetId() string
- func (x *Order) GetOrderHistoryDetail() *OrderHistoryDetail
- func (x *Order) GetState() string
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- func (m *Order) Validate() error
- func (m *Order) ValidateAll() error
- type OrderDetail
- func (*OrderDetail) Descriptor() ([]byte, []int)deprecated
- func (x *OrderDetail) GetAmount() int32
- func (*OrderDetail) ProtoMessage()
- func (x *OrderDetail) ProtoReflect() protoreflect.Message
- func (x *OrderDetail) Reset()
- func (x *OrderDetail) String() string
- func (m *OrderDetail) Validate() error
- func (m *OrderDetail) ValidateAll() error
- type OrderDetailMultiError
- type OrderDetailValidationError
- func (e OrderDetailValidationError) Cause() error
- func (e OrderDetailValidationError) Error() string
- func (e OrderDetailValidationError) ErrorName() string
- func (e OrderDetailValidationError) Field() string
- func (e OrderDetailValidationError) Key() bool
- func (e OrderDetailValidationError) Reason() string
- type OrderHistoryDetail
- func (*OrderHistoryDetail) Descriptor() ([]byte, []int)deprecated
- func (x *OrderHistoryDetail) GetAmount() string
- func (*OrderHistoryDetail) ProtoMessage()
- func (x *OrderHistoryDetail) ProtoReflect() protoreflect.Message
- func (x *OrderHistoryDetail) Reset()
- func (x *OrderHistoryDetail) String() string
- func (m *OrderHistoryDetail) Validate() error
- func (m *OrderHistoryDetail) ValidateAll() error
- type OrderHistoryDetailMultiError
- type OrderHistoryDetailValidationError
- func (e OrderHistoryDetailValidationError) Cause() error
- func (e OrderHistoryDetailValidationError) Error() string
- func (e OrderHistoryDetailValidationError) ErrorName() string
- func (e OrderHistoryDetailValidationError) Field() string
- func (e OrderHistoryDetailValidationError) Key() bool
- func (e OrderHistoryDetailValidationError) Reason() string
- type OrderHistoryServiceClient
- type OrderHistoryServiceServer
- type OrderMultiError
- type OrderServiceClient
- type OrderServiceServer
- type OrderValidationError
- type UnimplementedCustomerServiceServer
- type UnimplementedHealthcheckServiceServer
- type UnimplementedOrderHistoryServiceServer
- type UnimplementedOrderServiceServer
- type UnsafeCustomerServiceServer
- type UnsafeHealthcheckServiceServer
- type UnsafeOrderHistoryServiceServer
- type UnsafeOrderServiceServer
Constants ¶
This section is empty.
Variables ¶
var CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCustomer", Handler: _CustomerService_CreateCustomer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "customer.proto", }
CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_customer_proto protoreflect.FileDescriptor
var File_healthcheck_proto protoreflect.FileDescriptor
var File_orderHistory_proto protoreflect.FileDescriptor
var File_order_proto protoreflect.FileDescriptor
var HealthcheckService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.healthcheck.HealthcheckService", HandlerType: (*HealthcheckServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _HealthcheckService_GetVersion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "healthcheck.proto", }
HealthcheckService_ServiceDesc is the grpc.ServiceDesc for HealthcheckService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var OrderHistoryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.order_history.OrderHistoryService", HandlerType: (*OrderHistoryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOrderHistory", Handler: _OrderHistoryService_GetOrderHistory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "orderHistory.proto", }
OrderHistoryService_ServiceDesc is the grpc.ServiceDesc for OrderHistoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var OrderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.order.OrderService", HandlerType: (*OrderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrder", Handler: _OrderService_CreateOrder_Handler, }, { MethodName: "GetOrderStatus", Handler: _OrderService_GetOrderStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "order.proto", }
OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
func RegisterHealthcheckServiceServer ¶
func RegisterHealthcheckServiceServer(s grpc.ServiceRegistrar, srv HealthcheckServiceServer)
func RegisterOrderHistoryServiceServer ¶
func RegisterOrderHistoryServiceServer(s grpc.ServiceRegistrar, srv OrderHistoryServiceServer)
func RegisterOrderServiceServer ¶
func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)
Types ¶
type CreateCustomerReply ¶
type CreateCustomerReply struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerReply) Descriptor
deprecated
func (*CreateCustomerReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerReply.ProtoReflect.Descriptor instead.
func (*CreateCustomerReply) GetCustomerId ¶
func (x *CreateCustomerReply) GetCustomerId() string
func (*CreateCustomerReply) ProtoMessage ¶
func (*CreateCustomerReply) ProtoMessage()
func (*CreateCustomerReply) ProtoReflect ¶
func (x *CreateCustomerReply) ProtoReflect() protoreflect.Message
func (*CreateCustomerReply) Reset ¶
func (x *CreateCustomerReply) Reset()
func (*CreateCustomerReply) String ¶
func (x *CreateCustomerReply) String() string
func (*CreateCustomerReply) Validate ¶
func (m *CreateCustomerReply) Validate() error
Validate checks the field values on CreateCustomerReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCustomerReply) ValidateAll ¶
func (m *CreateCustomerReply) ValidateAll() error
ValidateAll checks the field values on CreateCustomerReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCustomerReplyMultiError, or nil if none found.
type CreateCustomerReplyMultiError ¶
type CreateCustomerReplyMultiError []error
CreateCustomerReplyMultiError is an error wrapping multiple validation errors returned by CreateCustomerReply.ValidateAll() if the designated constraints aren't met.
func (CreateCustomerReplyMultiError) AllErrors ¶
func (m CreateCustomerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCustomerReplyMultiError) Error ¶
func (m CreateCustomerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCustomerReplyValidationError ¶
type CreateCustomerReplyValidationError struct {
// contains filtered or unexported fields
}
CreateCustomerReplyValidationError is the validation error returned by CreateCustomerReply.Validate if the designated constraints aren't met.
func (CreateCustomerReplyValidationError) Cause ¶
func (e CreateCustomerReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateCustomerReplyValidationError) Error ¶
func (e CreateCustomerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCustomerReplyValidationError) ErrorName ¶
func (e CreateCustomerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCustomerReplyValidationError) Field ¶
func (e CreateCustomerReplyValidationError) Field() string
Field function returns field value.
func (CreateCustomerReplyValidationError) Key ¶
func (e CreateCustomerReplyValidationError) Key() bool
Key function returns key value.
func (CreateCustomerReplyValidationError) Reason ¶
func (e CreateCustomerReplyValidationError) Reason() string
Reason function returns reason value.
type CreateCustomerRequest ¶
type CreateCustomerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerRequest) Descriptor
deprecated
func (*CreateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerRequest.ProtoReflect.Descriptor instead.
func (*CreateCustomerRequest) GetAmount ¶
func (x *CreateCustomerRequest) GetAmount() int32
func (*CreateCustomerRequest) GetName ¶
func (x *CreateCustomerRequest) GetName() string
func (*CreateCustomerRequest) ProtoMessage ¶
func (*CreateCustomerRequest) ProtoMessage()
func (*CreateCustomerRequest) ProtoReflect ¶
func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
func (*CreateCustomerRequest) Reset ¶
func (x *CreateCustomerRequest) Reset()
func (*CreateCustomerRequest) String ¶
func (x *CreateCustomerRequest) String() string
func (*CreateCustomerRequest) Validate ¶
func (m *CreateCustomerRequest) Validate() error
Validate checks the field values on CreateCustomerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCustomerRequest) ValidateAll ¶
func (m *CreateCustomerRequest) ValidateAll() error
ValidateAll checks the field values on CreateCustomerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCustomerRequestMultiError, or nil if none found.
type CreateCustomerRequestMultiError ¶
type CreateCustomerRequestMultiError []error
CreateCustomerRequestMultiError is an error wrapping multiple validation errors returned by CreateCustomerRequest.ValidateAll() if the designated constraints aren't met.
func (CreateCustomerRequestMultiError) AllErrors ¶
func (m CreateCustomerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCustomerRequestMultiError) Error ¶
func (m CreateCustomerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCustomerRequestValidationError ¶
type CreateCustomerRequestValidationError struct {
// contains filtered or unexported fields
}
CreateCustomerRequestValidationError is the validation error returned by CreateCustomerRequest.Validate if the designated constraints aren't met.
func (CreateCustomerRequestValidationError) Cause ¶
func (e CreateCustomerRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateCustomerRequestValidationError) Error ¶
func (e CreateCustomerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCustomerRequestValidationError) ErrorName ¶
func (e CreateCustomerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCustomerRequestValidationError) Field ¶
func (e CreateCustomerRequestValidationError) Field() string
Field function returns field value.
func (CreateCustomerRequestValidationError) Key ¶
func (e CreateCustomerRequestValidationError) Key() bool
Key function returns key value.
func (CreateCustomerRequestValidationError) Reason ¶
func (e CreateCustomerRequestValidationError) Reason() string
Reason function returns reason value.
type CreateOrderReply ¶
type CreateOrderReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderReply) Descriptor
deprecated
func (*CreateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.
func (*CreateOrderReply) GetId ¶
func (x *CreateOrderReply) GetId() string
func (*CreateOrderReply) ProtoMessage ¶
func (*CreateOrderReply) ProtoMessage()
func (*CreateOrderReply) ProtoReflect ¶
func (x *CreateOrderReply) ProtoReflect() protoreflect.Message
func (*CreateOrderReply) Reset ¶
func (x *CreateOrderReply) Reset()
func (*CreateOrderReply) String ¶
func (x *CreateOrderReply) String() string
func (*CreateOrderReply) Validate ¶
func (m *CreateOrderReply) Validate() error
Validate checks the field values on CreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateOrderReply) ValidateAll ¶
func (m *CreateOrderReply) ValidateAll() error
ValidateAll checks the field values on CreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrderReplyMultiError, or nil if none found.
type CreateOrderReplyMultiError ¶
type CreateOrderReplyMultiError []error
CreateOrderReplyMultiError is an error wrapping multiple validation errors returned by CreateOrderReply.ValidateAll() if the designated constraints aren't met.
func (CreateOrderReplyMultiError) AllErrors ¶
func (m CreateOrderReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateOrderReplyMultiError) Error ¶
func (m CreateOrderReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateOrderReplyValidationError ¶
type CreateOrderReplyValidationError struct {
// contains filtered or unexported fields
}
CreateOrderReplyValidationError is the validation error returned by CreateOrderReply.Validate if the designated constraints aren't met.
func (CreateOrderReplyValidationError) Cause ¶
func (e CreateOrderReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateOrderReplyValidationError) Error ¶
func (e CreateOrderReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrderReplyValidationError) ErrorName ¶
func (e CreateOrderReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrderReplyValidationError) Field ¶
func (e CreateOrderReplyValidationError) Field() string
Field function returns field value.
func (CreateOrderReplyValidationError) Key ¶
func (e CreateOrderReplyValidationError) Key() bool
Key function returns key value.
func (CreateOrderReplyValidationError) Reason ¶
func (e CreateOrderReplyValidationError) Reason() string
Reason function returns reason value.
type CreateOrderRequest ¶
type CreateOrderRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` OrderDetail *OrderDetail `protobuf:"bytes,2,opt,name=order_detail,json=orderDetail,proto3" json:"order_detail,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderRequest) Descriptor
deprecated
func (*CreateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) GetCustomerId ¶
func (x *CreateOrderRequest) GetCustomerId() string
func (*CreateOrderRequest) GetOrderDetail ¶
func (x *CreateOrderRequest) GetOrderDetail() *OrderDetail
func (*CreateOrderRequest) ProtoMessage ¶
func (*CreateOrderRequest) ProtoMessage()
func (*CreateOrderRequest) ProtoReflect ¶
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
func (*CreateOrderRequest) Reset ¶
func (x *CreateOrderRequest) Reset()
func (*CreateOrderRequest) String ¶
func (x *CreateOrderRequest) String() string
func (*CreateOrderRequest) Validate ¶
func (m *CreateOrderRequest) Validate() error
Validate checks the field values on CreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateOrderRequest) ValidateAll ¶
func (m *CreateOrderRequest) ValidateAll() error
ValidateAll checks the field values on CreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrderRequestMultiError, or nil if none found.
type CreateOrderRequestMultiError ¶
type CreateOrderRequestMultiError []error
CreateOrderRequestMultiError is an error wrapping multiple validation errors returned by CreateOrderRequest.ValidateAll() if the designated constraints aren't met.
func (CreateOrderRequestMultiError) AllErrors ¶
func (m CreateOrderRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateOrderRequestMultiError) Error ¶
func (m CreateOrderRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateOrderRequestValidationError ¶
type CreateOrderRequestValidationError struct {
// contains filtered or unexported fields
}
CreateOrderRequestValidationError is the validation error returned by CreateOrderRequest.Validate if the designated constraints aren't met.
func (CreateOrderRequestValidationError) Cause ¶
func (e CreateOrderRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateOrderRequestValidationError) Error ¶
func (e CreateOrderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrderRequestValidationError) ErrorName ¶
func (e CreateOrderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrderRequestValidationError) Field ¶
func (e CreateOrderRequestValidationError) Field() string
Field function returns field value.
func (CreateOrderRequestValidationError) Key ¶
func (e CreateOrderRequestValidationError) Key() bool
Key function returns key value.
func (CreateOrderRequestValidationError) Reason ¶
func (e CreateOrderRequestValidationError) Reason() string
Reason function returns reason value.
type CreditLimit ¶
type CreditLimit struct { Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*CreditLimit) Descriptor
deprecated
func (*CreditLimit) Descriptor() ([]byte, []int)
Deprecated: Use CreditLimit.ProtoReflect.Descriptor instead.
func (*CreditLimit) GetAmount ¶
func (x *CreditLimit) GetAmount() string
func (*CreditLimit) ProtoMessage ¶
func (*CreditLimit) ProtoMessage()
func (*CreditLimit) ProtoReflect ¶
func (x *CreditLimit) ProtoReflect() protoreflect.Message
func (*CreditLimit) Reset ¶
func (x *CreditLimit) Reset()
func (*CreditLimit) String ¶
func (x *CreditLimit) String() string
func (*CreditLimit) Validate ¶
func (m *CreditLimit) Validate() error
Validate checks the field values on CreditLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreditLimit) ValidateAll ¶
func (m *CreditLimit) ValidateAll() error
ValidateAll checks the field values on CreditLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreditLimitMultiError, or nil if none found.
type CreditLimitMultiError ¶
type CreditLimitMultiError []error
CreditLimitMultiError is an error wrapping multiple validation errors returned by CreditLimit.ValidateAll() if the designated constraints aren't met.
func (CreditLimitMultiError) AllErrors ¶
func (m CreditLimitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreditLimitMultiError) Error ¶
func (m CreditLimitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreditLimitValidationError ¶
type CreditLimitValidationError struct {
// contains filtered or unexported fields
}
CreditLimitValidationError is the validation error returned by CreditLimit.Validate if the designated constraints aren't met.
func (CreditLimitValidationError) Cause ¶
func (e CreditLimitValidationError) Cause() error
Cause function returns cause value.
func (CreditLimitValidationError) Error ¶
func (e CreditLimitValidationError) Error() string
Error satisfies the builtin error interface
func (CreditLimitValidationError) ErrorName ¶
func (e CreditLimitValidationError) ErrorName() string
ErrorName returns error name.
func (CreditLimitValidationError) Field ¶
func (e CreditLimitValidationError) Field() string
Field function returns field value.
func (CreditLimitValidationError) Key ¶
func (e CreditLimitValidationError) Key() bool
Key function returns key value.
func (CreditLimitValidationError) Reason ¶
func (e CreditLimitValidationError) Reason() string
Reason function returns reason value.
type CustomerServiceClient ¶
type CustomerServiceClient interface {
CreateCustomer(ctx context.Context, in *CreateCustomerRequest, opts ...grpc.CallOption) (*CreateCustomerReply, error)
}
CustomerServiceClient is the client API for CustomerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc grpc.ClientConnInterface) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerReply, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type GetOrderHistoryReply ¶
type GetOrderHistoryReply struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Orders []*Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` CreditLimit *CreditLimit `protobuf:"bytes,4,opt,name=credit_limit,json=creditLimit,proto3" json:"credit_limit,omitempty"` // contains filtered or unexported fields }
func (*GetOrderHistoryReply) Descriptor
deprecated
func (*GetOrderHistoryReply) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderHistoryReply.ProtoReflect.Descriptor instead.
func (*GetOrderHistoryReply) GetCreditLimit ¶
func (x *GetOrderHistoryReply) GetCreditLimit() *CreditLimit
func (*GetOrderHistoryReply) GetCustomerId ¶
func (x *GetOrderHistoryReply) GetCustomerId() string
func (*GetOrderHistoryReply) GetName ¶
func (x *GetOrderHistoryReply) GetName() string
func (*GetOrderHistoryReply) GetOrders ¶
func (x *GetOrderHistoryReply) GetOrders() []*Order
func (*GetOrderHistoryReply) ProtoMessage ¶
func (*GetOrderHistoryReply) ProtoMessage()
func (*GetOrderHistoryReply) ProtoReflect ¶
func (x *GetOrderHistoryReply) ProtoReflect() protoreflect.Message
func (*GetOrderHistoryReply) Reset ¶
func (x *GetOrderHistoryReply) Reset()
func (*GetOrderHistoryReply) String ¶
func (x *GetOrderHistoryReply) String() string
func (*GetOrderHistoryReply) Validate ¶
func (m *GetOrderHistoryReply) Validate() error
Validate checks the field values on GetOrderHistoryReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetOrderHistoryReply) ValidateAll ¶
func (m *GetOrderHistoryReply) ValidateAll() error
ValidateAll checks the field values on GetOrderHistoryReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetOrderHistoryReplyMultiError, or nil if none found.
type GetOrderHistoryReplyMultiError ¶
type GetOrderHistoryReplyMultiError []error
GetOrderHistoryReplyMultiError is an error wrapping multiple validation errors returned by GetOrderHistoryReply.ValidateAll() if the designated constraints aren't met.
func (GetOrderHistoryReplyMultiError) AllErrors ¶
func (m GetOrderHistoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetOrderHistoryReplyMultiError) Error ¶
func (m GetOrderHistoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetOrderHistoryReplyValidationError ¶
type GetOrderHistoryReplyValidationError struct {
// contains filtered or unexported fields
}
GetOrderHistoryReplyValidationError is the validation error returned by GetOrderHistoryReply.Validate if the designated constraints aren't met.
func (GetOrderHistoryReplyValidationError) Cause ¶
func (e GetOrderHistoryReplyValidationError) Cause() error
Cause function returns cause value.
func (GetOrderHistoryReplyValidationError) Error ¶
func (e GetOrderHistoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrderHistoryReplyValidationError) ErrorName ¶
func (e GetOrderHistoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrderHistoryReplyValidationError) Field ¶
func (e GetOrderHistoryReplyValidationError) Field() string
Field function returns field value.
func (GetOrderHistoryReplyValidationError) Key ¶
func (e GetOrderHistoryReplyValidationError) Key() bool
Key function returns key value.
func (GetOrderHistoryReplyValidationError) Reason ¶
func (e GetOrderHistoryReplyValidationError) Reason() string
Reason function returns reason value.
type GetOrderHistoryRequest ¶
type GetOrderHistoryRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // contains filtered or unexported fields }
func (*GetOrderHistoryRequest) Descriptor
deprecated
func (*GetOrderHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetOrderHistoryRequest) GetCustomerId ¶
func (x *GetOrderHistoryRequest) GetCustomerId() string
func (*GetOrderHistoryRequest) ProtoMessage ¶
func (*GetOrderHistoryRequest) ProtoMessage()
func (*GetOrderHistoryRequest) ProtoReflect ¶
func (x *GetOrderHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetOrderHistoryRequest) Reset ¶
func (x *GetOrderHistoryRequest) Reset()
func (*GetOrderHistoryRequest) String ¶
func (x *GetOrderHistoryRequest) String() string
func (*GetOrderHistoryRequest) Validate ¶
func (m *GetOrderHistoryRequest) Validate() error
Validate checks the field values on GetOrderHistoryRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetOrderHistoryRequest) ValidateAll ¶
func (m *GetOrderHistoryRequest) ValidateAll() error
ValidateAll checks the field values on GetOrderHistoryRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetOrderHistoryRequestMultiError, or nil if none found.
type GetOrderHistoryRequestMultiError ¶
type GetOrderHistoryRequestMultiError []error
GetOrderHistoryRequestMultiError is an error wrapping multiple validation errors returned by GetOrderHistoryRequest.ValidateAll() if the designated constraints aren't met.
func (GetOrderHistoryRequestMultiError) AllErrors ¶
func (m GetOrderHistoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetOrderHistoryRequestMultiError) Error ¶
func (m GetOrderHistoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetOrderHistoryRequestValidationError ¶
type GetOrderHistoryRequestValidationError struct {
// contains filtered or unexported fields
}
GetOrderHistoryRequestValidationError is the validation error returned by GetOrderHistoryRequest.Validate if the designated constraints aren't met.
func (GetOrderHistoryRequestValidationError) Cause ¶
func (e GetOrderHistoryRequestValidationError) Cause() error
Cause function returns cause value.
func (GetOrderHistoryRequestValidationError) Error ¶
func (e GetOrderHistoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrderHistoryRequestValidationError) ErrorName ¶
func (e GetOrderHistoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrderHistoryRequestValidationError) Field ¶
func (e GetOrderHistoryRequestValidationError) Field() string
Field function returns field value.
func (GetOrderHistoryRequestValidationError) Key ¶
func (e GetOrderHistoryRequestValidationError) Key() bool
Key function returns key value.
func (GetOrderHistoryRequestValidationError) Reason ¶
func (e GetOrderHistoryRequestValidationError) Reason() string
Reason function returns reason value.
type GetOrderStatusReply ¶
type GetOrderStatusReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*GetOrderStatusReply) Descriptor
deprecated
func (*GetOrderStatusReply) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderStatusReply.ProtoReflect.Descriptor instead.
func (*GetOrderStatusReply) GetId ¶
func (x *GetOrderStatusReply) GetId() string
func (*GetOrderStatusReply) GetState ¶
func (x *GetOrderStatusReply) GetState() string
func (*GetOrderStatusReply) ProtoMessage ¶
func (*GetOrderStatusReply) ProtoMessage()
func (*GetOrderStatusReply) ProtoReflect ¶
func (x *GetOrderStatusReply) ProtoReflect() protoreflect.Message
func (*GetOrderStatusReply) Reset ¶
func (x *GetOrderStatusReply) Reset()
func (*GetOrderStatusReply) String ¶
func (x *GetOrderStatusReply) String() string
func (*GetOrderStatusReply) Validate ¶
func (m *GetOrderStatusReply) Validate() error
Validate checks the field values on GetOrderStatusReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetOrderStatusReply) ValidateAll ¶
func (m *GetOrderStatusReply) ValidateAll() error
ValidateAll checks the field values on GetOrderStatusReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetOrderStatusReplyMultiError, or nil if none found.
type GetOrderStatusReplyMultiError ¶
type GetOrderStatusReplyMultiError []error
GetOrderStatusReplyMultiError is an error wrapping multiple validation errors returned by GetOrderStatusReply.ValidateAll() if the designated constraints aren't met.
func (GetOrderStatusReplyMultiError) AllErrors ¶
func (m GetOrderStatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetOrderStatusReplyMultiError) Error ¶
func (m GetOrderStatusReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetOrderStatusReplyValidationError ¶
type GetOrderStatusReplyValidationError struct {
// contains filtered or unexported fields
}
GetOrderStatusReplyValidationError is the validation error returned by GetOrderStatusReply.Validate if the designated constraints aren't met.
func (GetOrderStatusReplyValidationError) Cause ¶
func (e GetOrderStatusReplyValidationError) Cause() error
Cause function returns cause value.
func (GetOrderStatusReplyValidationError) Error ¶
func (e GetOrderStatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrderStatusReplyValidationError) ErrorName ¶
func (e GetOrderStatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrderStatusReplyValidationError) Field ¶
func (e GetOrderStatusReplyValidationError) Field() string
Field function returns field value.
func (GetOrderStatusReplyValidationError) Key ¶
func (e GetOrderStatusReplyValidationError) Key() bool
Key function returns key value.
func (GetOrderStatusReplyValidationError) Reason ¶
func (e GetOrderStatusReplyValidationError) Reason() string
Reason function returns reason value.
type GetOrderStatusRequest ¶
type GetOrderStatusRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetOrderStatusRequest) Descriptor
deprecated
func (*GetOrderStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderStatusRequest.ProtoReflect.Descriptor instead.
func (*GetOrderStatusRequest) GetId ¶
func (x *GetOrderStatusRequest) GetId() string
func (*GetOrderStatusRequest) ProtoMessage ¶
func (*GetOrderStatusRequest) ProtoMessage()
func (*GetOrderStatusRequest) ProtoReflect ¶
func (x *GetOrderStatusRequest) ProtoReflect() protoreflect.Message
func (*GetOrderStatusRequest) Reset ¶
func (x *GetOrderStatusRequest) Reset()
func (*GetOrderStatusRequest) String ¶
func (x *GetOrderStatusRequest) String() string
func (*GetOrderStatusRequest) Validate ¶
func (m *GetOrderStatusRequest) Validate() error
Validate checks the field values on GetOrderStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetOrderStatusRequest) ValidateAll ¶
func (m *GetOrderStatusRequest) ValidateAll() error
ValidateAll checks the field values on GetOrderStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetOrderStatusRequestMultiError, or nil if none found.
type GetOrderStatusRequestMultiError ¶
type GetOrderStatusRequestMultiError []error
GetOrderStatusRequestMultiError is an error wrapping multiple validation errors returned by GetOrderStatusRequest.ValidateAll() if the designated constraints aren't met.
func (GetOrderStatusRequestMultiError) AllErrors ¶
func (m GetOrderStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetOrderStatusRequestMultiError) Error ¶
func (m GetOrderStatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetOrderStatusRequestValidationError ¶
type GetOrderStatusRequestValidationError struct {
// contains filtered or unexported fields
}
GetOrderStatusRequestValidationError is the validation error returned by GetOrderStatusRequest.Validate if the designated constraints aren't met.
func (GetOrderStatusRequestValidationError) Cause ¶
func (e GetOrderStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (GetOrderStatusRequestValidationError) Error ¶
func (e GetOrderStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrderStatusRequestValidationError) ErrorName ¶
func (e GetOrderStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrderStatusRequestValidationError) Field ¶
func (e GetOrderStatusRequestValidationError) Field() string
Field function returns field value.
func (GetOrderStatusRequestValidationError) Key ¶
func (e GetOrderStatusRequestValidationError) Key() bool
Key function returns key value.
func (GetOrderStatusRequestValidationError) Reason ¶
func (e GetOrderStatusRequestValidationError) Reason() string
Reason function returns reason value.
type GetVersionReply ¶
type GetVersionReply struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*GetVersionReply) Descriptor
deprecated
func (*GetVersionReply) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionReply.ProtoReflect.Descriptor instead.
func (*GetVersionReply) GetVersion ¶
func (x *GetVersionReply) GetVersion() string
func (*GetVersionReply) ProtoMessage ¶
func (*GetVersionReply) ProtoMessage()
func (*GetVersionReply) ProtoReflect ¶
func (x *GetVersionReply) ProtoReflect() protoreflect.Message
func (*GetVersionReply) Reset ¶
func (x *GetVersionReply) Reset()
func (*GetVersionReply) String ¶
func (x *GetVersionReply) String() string
func (*GetVersionReply) Validate ¶
func (m *GetVersionReply) Validate() error
Validate checks the field values on GetVersionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetVersionReply) ValidateAll ¶
func (m *GetVersionReply) ValidateAll() error
ValidateAll checks the field values on GetVersionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetVersionReplyMultiError, or nil if none found.
type GetVersionReplyMultiError ¶
type GetVersionReplyMultiError []error
GetVersionReplyMultiError is an error wrapping multiple validation errors returned by GetVersionReply.ValidateAll() if the designated constraints aren't met.
func (GetVersionReplyMultiError) AllErrors ¶
func (m GetVersionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetVersionReplyMultiError) Error ¶
func (m GetVersionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetVersionReplyValidationError ¶
type GetVersionReplyValidationError struct {
// contains filtered or unexported fields
}
GetVersionReplyValidationError is the validation error returned by GetVersionReply.Validate if the designated constraints aren't met.
func (GetVersionReplyValidationError) Cause ¶
func (e GetVersionReplyValidationError) Cause() error
Cause function returns cause value.
func (GetVersionReplyValidationError) Error ¶
func (e GetVersionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetVersionReplyValidationError) ErrorName ¶
func (e GetVersionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetVersionReplyValidationError) Field ¶
func (e GetVersionReplyValidationError) Field() string
Field function returns field value.
func (GetVersionReplyValidationError) Key ¶
func (e GetVersionReplyValidationError) Key() bool
Key function returns key value.
func (GetVersionReplyValidationError) Reason ¶
func (e GetVersionReplyValidationError) Reason() string
Reason function returns reason value.
type HealthcheckServiceClient ¶
type HealthcheckServiceClient interface {
GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionReply, error)
}
HealthcheckServiceClient is the client API for HealthcheckService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHealthcheckServiceClient ¶
func NewHealthcheckServiceClient(cc grpc.ClientConnInterface) HealthcheckServiceClient
type HealthcheckServiceServer ¶
type HealthcheckServiceServer interface { GetVersion(context.Context, *emptypb.Empty) (*GetVersionReply, error) // contains filtered or unexported methods }
HealthcheckServiceServer is the server API for HealthcheckService service. All implementations must embed UnimplementedHealthcheckServiceServer for forward compatibility
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` OrderHistoryDetail *OrderHistoryDetail `protobuf:"bytes,3,opt,name=order_history_detail,json=orderHistoryDetail,proto3" json:"order_history_detail,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetOrderHistoryDetail ¶
func (x *Order) GetOrderHistoryDetail() *OrderHistoryDetail
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
func (*Order) Validate ¶
Validate checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Order) ValidateAll ¶
ValidateAll checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrderMultiError, or nil if none found.
type OrderDetail ¶
type OrderDetail struct { Amount int32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*OrderDetail) Descriptor
deprecated
func (*OrderDetail) Descriptor() ([]byte, []int)
Deprecated: Use OrderDetail.ProtoReflect.Descriptor instead.
func (*OrderDetail) GetAmount ¶
func (x *OrderDetail) GetAmount() int32
func (*OrderDetail) ProtoMessage ¶
func (*OrderDetail) ProtoMessage()
func (*OrderDetail) ProtoReflect ¶
func (x *OrderDetail) ProtoReflect() protoreflect.Message
func (*OrderDetail) Reset ¶
func (x *OrderDetail) Reset()
func (*OrderDetail) String ¶
func (x *OrderDetail) String() string
func (*OrderDetail) Validate ¶
func (m *OrderDetail) Validate() error
Validate checks the field values on OrderDetail with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OrderDetail) ValidateAll ¶
func (m *OrderDetail) ValidateAll() error
ValidateAll checks the field values on OrderDetail with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrderDetailMultiError, or nil if none found.
type OrderDetailMultiError ¶
type OrderDetailMultiError []error
OrderDetailMultiError is an error wrapping multiple validation errors returned by OrderDetail.ValidateAll() if the designated constraints aren't met.
func (OrderDetailMultiError) AllErrors ¶
func (m OrderDetailMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrderDetailMultiError) Error ¶
func (m OrderDetailMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrderDetailValidationError ¶
type OrderDetailValidationError struct {
// contains filtered or unexported fields
}
OrderDetailValidationError is the validation error returned by OrderDetail.Validate if the designated constraints aren't met.
func (OrderDetailValidationError) Cause ¶
func (e OrderDetailValidationError) Cause() error
Cause function returns cause value.
func (OrderDetailValidationError) Error ¶
func (e OrderDetailValidationError) Error() string
Error satisfies the builtin error interface
func (OrderDetailValidationError) ErrorName ¶
func (e OrderDetailValidationError) ErrorName() string
ErrorName returns error name.
func (OrderDetailValidationError) Field ¶
func (e OrderDetailValidationError) Field() string
Field function returns field value.
func (OrderDetailValidationError) Key ¶
func (e OrderDetailValidationError) Key() bool
Key function returns key value.
func (OrderDetailValidationError) Reason ¶
func (e OrderDetailValidationError) Reason() string
Reason function returns reason value.
type OrderHistoryDetail ¶
type OrderHistoryDetail struct { Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*OrderHistoryDetail) Descriptor
deprecated
func (*OrderHistoryDetail) Descriptor() ([]byte, []int)
Deprecated: Use OrderHistoryDetail.ProtoReflect.Descriptor instead.
func (*OrderHistoryDetail) GetAmount ¶
func (x *OrderHistoryDetail) GetAmount() string
func (*OrderHistoryDetail) ProtoMessage ¶
func (*OrderHistoryDetail) ProtoMessage()
func (*OrderHistoryDetail) ProtoReflect ¶
func (x *OrderHistoryDetail) ProtoReflect() protoreflect.Message
func (*OrderHistoryDetail) Reset ¶
func (x *OrderHistoryDetail) Reset()
func (*OrderHistoryDetail) String ¶
func (x *OrderHistoryDetail) String() string
func (*OrderHistoryDetail) Validate ¶
func (m *OrderHistoryDetail) Validate() error
Validate checks the field values on OrderHistoryDetail with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OrderHistoryDetail) ValidateAll ¶
func (m *OrderHistoryDetail) ValidateAll() error
ValidateAll checks the field values on OrderHistoryDetail with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrderHistoryDetailMultiError, or nil if none found.
type OrderHistoryDetailMultiError ¶
type OrderHistoryDetailMultiError []error
OrderHistoryDetailMultiError is an error wrapping multiple validation errors returned by OrderHistoryDetail.ValidateAll() if the designated constraints aren't met.
func (OrderHistoryDetailMultiError) AllErrors ¶
func (m OrderHistoryDetailMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrderHistoryDetailMultiError) Error ¶
func (m OrderHistoryDetailMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrderHistoryDetailValidationError ¶
type OrderHistoryDetailValidationError struct {
// contains filtered or unexported fields
}
OrderHistoryDetailValidationError is the validation error returned by OrderHistoryDetail.Validate if the designated constraints aren't met.
func (OrderHistoryDetailValidationError) Cause ¶
func (e OrderHistoryDetailValidationError) Cause() error
Cause function returns cause value.
func (OrderHistoryDetailValidationError) Error ¶
func (e OrderHistoryDetailValidationError) Error() string
Error satisfies the builtin error interface
func (OrderHistoryDetailValidationError) ErrorName ¶
func (e OrderHistoryDetailValidationError) ErrorName() string
ErrorName returns error name.
func (OrderHistoryDetailValidationError) Field ¶
func (e OrderHistoryDetailValidationError) Field() string
Field function returns field value.
func (OrderHistoryDetailValidationError) Key ¶
func (e OrderHistoryDetailValidationError) Key() bool
Key function returns key value.
func (OrderHistoryDetailValidationError) Reason ¶
func (e OrderHistoryDetailValidationError) Reason() string
Reason function returns reason value.
type OrderHistoryServiceClient ¶
type OrderHistoryServiceClient interface {
GetOrderHistory(ctx context.Context, in *GetOrderHistoryRequest, opts ...grpc.CallOption) (*GetOrderHistoryReply, error)
}
OrderHistoryServiceClient is the client API for OrderHistoryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOrderHistoryServiceClient ¶
func NewOrderHistoryServiceClient(cc grpc.ClientConnInterface) OrderHistoryServiceClient
type OrderHistoryServiceServer ¶
type OrderHistoryServiceServer interface { GetOrderHistory(context.Context, *GetOrderHistoryRequest) (*GetOrderHistoryReply, error) // contains filtered or unexported methods }
OrderHistoryServiceServer is the server API for OrderHistoryService service. All implementations must embed UnimplementedOrderHistoryServiceServer for forward compatibility
type OrderMultiError ¶
type OrderMultiError []error
OrderMultiError is an error wrapping multiple validation errors returned by Order.ValidateAll() if the designated constraints aren't met.
func (OrderMultiError) AllErrors ¶
func (m OrderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrderMultiError) Error ¶
func (m OrderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrderServiceClient ¶
type OrderServiceClient interface { CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderReply, error) GetOrderStatus(ctx context.Context, in *GetOrderStatusRequest, opts ...grpc.CallOption) (*GetOrderStatusReply, error) }
OrderServiceClient is the client API for OrderService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOrderServiceClient ¶
func NewOrderServiceClient(cc grpc.ClientConnInterface) OrderServiceClient
type OrderServiceServer ¶
type OrderServiceServer interface { CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error) GetOrderStatus(context.Context, *GetOrderStatusRequest) (*GetOrderStatusReply, error) // contains filtered or unexported methods }
OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility
type OrderValidationError ¶
type OrderValidationError struct {
// contains filtered or unexported fields
}
OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.
func (OrderValidationError) Cause ¶
func (e OrderValidationError) Cause() error
Cause function returns cause value.
func (OrderValidationError) Error ¶
func (e OrderValidationError) Error() string
Error satisfies the builtin error interface
func (OrderValidationError) ErrorName ¶
func (e OrderValidationError) ErrorName() string
ErrorName returns error name.
func (OrderValidationError) Field ¶
func (e OrderValidationError) Field() string
Field function returns field value.
func (OrderValidationError) Key ¶
func (e OrderValidationError) Key() bool
Key function returns key value.
func (OrderValidationError) Reason ¶
func (e OrderValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) CreateCustomer ¶
func (UnimplementedCustomerServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerReply, error)
type UnimplementedHealthcheckServiceServer ¶
type UnimplementedHealthcheckServiceServer struct { }
UnimplementedHealthcheckServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHealthcheckServiceServer) GetVersion ¶
func (UnimplementedHealthcheckServiceServer) GetVersion(context.Context, *emptypb.Empty) (*GetVersionReply, error)
type UnimplementedOrderHistoryServiceServer ¶
type UnimplementedOrderHistoryServiceServer struct { }
UnimplementedOrderHistoryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOrderHistoryServiceServer) GetOrderHistory ¶
func (UnimplementedOrderHistoryServiceServer) GetOrderHistory(context.Context, *GetOrderHistoryRequest) (*GetOrderHistoryReply, error)
type UnimplementedOrderServiceServer ¶
type UnimplementedOrderServiceServer struct { }
UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOrderServiceServer) CreateOrder ¶
func (UnimplementedOrderServiceServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
func (UnimplementedOrderServiceServer) GetOrderStatus ¶
func (UnimplementedOrderServiceServer) GetOrderStatus(context.Context, *GetOrderStatusRequest) (*GetOrderStatusReply, error)
type UnsafeCustomerServiceServer ¶
type UnsafeCustomerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomerServiceServer will result in compilation errors.
type UnsafeHealthcheckServiceServer ¶
type UnsafeHealthcheckServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHealthcheckServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthcheckServiceServer will result in compilation errors.
type UnsafeOrderHistoryServiceServer ¶
type UnsafeOrderHistoryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrderHistoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderHistoryServiceServer will result in compilation errors.
type UnsafeOrderServiceServer ¶
type UnsafeOrderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServiceServer will result in compilation errors.