pb

package
v0.0.0-...-c015bec Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_customer_proto protoreflect.FileDescriptor
View Source
var File_healthcheck_proto protoreflect.FileDescriptor
View Source
var File_orderHistory_proto protoreflect.FileDescriptor
View Source
var File_order_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

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

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

Cause function returns cause value.

func (CreateCustomerReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateCustomerReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateCustomerReplyValidationError) Field

Field function returns field value.

func (CreateCustomerReplyValidationError) Key

Key function returns key value.

func (CreateCustomerReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateCustomerRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCustomerRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCustomerRequestValidationError) Field

Field function returns field value.

func (CreateCustomerRequestValidationError) Key

Key function returns key value.

func (CreateCustomerRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateOrderReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderReplyValidationError) Field

Field function returns field value.

func (CreateOrderReplyValidationError) Key

Key function returns key value.

func (CreateOrderReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderRequestValidationError) Field

Field function returns field value.

func (CreateOrderRequestValidationError) Key

Key function returns key value.

func (CreateOrderRequestValidationError) Reason

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

Cause function returns cause value.

func (CreditLimitValidationError) Error

Error satisfies the builtin error interface

func (CreditLimitValidationError) ErrorName

func (e CreditLimitValidationError) ErrorName() string

ErrorName returns error name.

func (CreditLimitValidationError) Field

Field function returns field value.

func (CreditLimitValidationError) Key

Key function returns key value.

func (CreditLimitValidationError) Reason

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.

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

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

Cause function returns cause value.

func (GetOrderHistoryReplyValidationError) Error

Error satisfies the builtin error interface

func (GetOrderHistoryReplyValidationError) ErrorName

ErrorName returns error name.

func (GetOrderHistoryReplyValidationError) Field

Field function returns field value.

func (GetOrderHistoryReplyValidationError) Key

Key function returns key value.

func (GetOrderHistoryReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetOrderHistoryRequestValidationError) Error

Error satisfies the builtin error interface

func (GetOrderHistoryRequestValidationError) ErrorName

ErrorName returns error name.

func (GetOrderHistoryRequestValidationError) Field

Field function returns field value.

func (GetOrderHistoryRequestValidationError) Key

Key function returns key value.

func (GetOrderHistoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetOrderStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (GetOrderStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (GetOrderStatusReplyValidationError) Field

Field function returns field value.

func (GetOrderStatusReplyValidationError) Key

Key function returns key value.

func (GetOrderStatusReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetOrderStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (GetOrderStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (GetOrderStatusRequestValidationError) Field

Field function returns field value.

func (GetOrderStatusRequestValidationError) Key

Key function returns key value.

func (GetOrderStatusRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetVersionReplyValidationError) Error

Error satisfies the builtin error interface

func (GetVersionReplyValidationError) ErrorName

func (e GetVersionReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetVersionReplyValidationError) Field

Field function returns field value.

func (GetVersionReplyValidationError) Key

Key function returns key value.

func (GetVersionReplyValidationError) Reason

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.

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetOrderHistoryDetail

func (x *Order) GetOrderHistoryDetail() *OrderHistoryDetail

func (*Order) GetState

func (x *Order) GetState() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

func (*Order) Validate

func (m *Order) Validate() error

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

func (m *Order) ValidateAll() error

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

Cause function returns cause value.

func (OrderDetailValidationError) Error

Error satisfies the builtin error interface

func (OrderDetailValidationError) ErrorName

func (e OrderDetailValidationError) ErrorName() string

ErrorName returns error name.

func (OrderDetailValidationError) Field

Field function returns field value.

func (OrderDetailValidationError) Key

Key function returns key value.

func (OrderDetailValidationError) Reason

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

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

Cause function returns cause value.

func (OrderHistoryDetailValidationError) Error

Error satisfies the builtin error interface

func (OrderHistoryDetailValidationError) ErrorName

ErrorName returns error name.

func (OrderHistoryDetailValidationError) Field

Field function returns field value.

func (OrderHistoryDetailValidationError) Key

Key function returns key value.

func (OrderHistoryDetailValidationError) Reason

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.

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.

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

type UnimplementedHealthcheckServiceServer

type UnimplementedHealthcheckServiceServer struct {
}

UnimplementedHealthcheckServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHealthcheckServiceServer) GetVersion

type UnimplementedOrderHistoryServiceServer

type UnimplementedOrderHistoryServiceServer struct {
}

UnimplementedOrderHistoryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderHistoryServiceServer) GetOrderHistory

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) CreateOrder

func (UnimplementedOrderServiceServer) GetOrderStatus

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.

Jump to

Keyboard shortcuts

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