Documentation ¶
Overview ¶
Package economy is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVEconomyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVEconomyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVEconomyServiceClient) error
- func RegisterMruVEconomyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVEconomyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVEconomyServiceServer) error
- func RegisterMruVEconomyServiceServer(s *grpc.Server, srv MruVEconomyServiceServer)
- type BuyProductRequest
- func (*BuyProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuyProductRequest) GetId() uint32
- func (x *BuyProductRequest) GetName() string
- func (*BuyProductRequest) ProtoMessage()
- func (x *BuyProductRequest) ProtoReflect() protoreflect.Message
- func (x *BuyProductRequest) Reset()
- func (x *BuyProductRequest) String() string
- func (m *BuyProductRequest) Validate() error
- type BuyProductRequestValidationError
- func (e BuyProductRequestValidationError) Cause() error
- func (e BuyProductRequestValidationError) Error() string
- func (e BuyProductRequestValidationError) ErrorName() string
- func (e BuyProductRequestValidationError) Field() string
- func (e BuyProductRequestValidationError) Key() bool
- func (e BuyProductRequestValidationError) Reason() string
- type BuyProductResponse
- func (*BuyProductResponse) Descriptor() ([]byte, []int)deprecated
- func (*BuyProductResponse) ProtoMessage()
- func (x *BuyProductResponse) ProtoReflect() protoreflect.Message
- func (x *BuyProductResponse) Reset()
- func (x *BuyProductResponse) String() string
- func (m *BuyProductResponse) Validate() error
- type BuyProductResponseValidationError
- func (e BuyProductResponseValidationError) Cause() error
- func (e BuyProductResponseValidationError) Error() string
- func (e BuyProductResponseValidationError) ErrorName() string
- func (e BuyProductResponseValidationError) Field() string
- func (e BuyProductResponseValidationError) Key() bool
- func (e BuyProductResponseValidationError) Reason() string
- type DeleteProductRequest
- func (*DeleteProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductRequest) GetId() uint32
- func (x *DeleteProductRequest) GetName() string
- func (*DeleteProductRequest) ProtoMessage()
- func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductRequest) Reset()
- func (x *DeleteProductRequest) String() string
- func (m *DeleteProductRequest) Validate() error
- type DeleteProductRequestValidationError
- func (e DeleteProductRequestValidationError) Cause() error
- func (e DeleteProductRequestValidationError) Error() string
- func (e DeleteProductRequestValidationError) ErrorName() string
- func (e DeleteProductRequestValidationError) Field() string
- func (e DeleteProductRequestValidationError) Key() bool
- func (e DeleteProductRequestValidationError) Reason() string
- type DeleteProductResponse
- func (*DeleteProductResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteProductResponse) ProtoMessage()
- func (x *DeleteProductResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteProductResponse) Reset()
- func (x *DeleteProductResponse) String() string
- func (m *DeleteProductResponse) Validate() error
- type DeleteProductResponseValidationError
- func (e DeleteProductResponseValidationError) Cause() error
- func (e DeleteProductResponseValidationError) Error() string
- func (e DeleteProductResponseValidationError) ErrorName() string
- func (e DeleteProductResponseValidationError) Field() string
- func (e DeleteProductResponseValidationError) Key() bool
- func (e DeleteProductResponseValidationError) Reason() string
- type GetPriceRequest
- func (*GetPriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPriceRequest) GetId() uint32
- func (x *GetPriceRequest) GetName() string
- func (*GetPriceRequest) ProtoMessage()
- func (x *GetPriceRequest) ProtoReflect() protoreflect.Message
- func (x *GetPriceRequest) Reset()
- func (x *GetPriceRequest) String() string
- func (m *GetPriceRequest) Validate() error
- type GetPriceRequestValidationError
- func (e GetPriceRequestValidationError) Cause() error
- func (e GetPriceRequestValidationError) Error() string
- func (e GetPriceRequestValidationError) ErrorName() string
- func (e GetPriceRequestValidationError) Field() string
- func (e GetPriceRequestValidationError) Key() bool
- func (e GetPriceRequestValidationError) Reason() string
- type GetPriceResponse
- func (*GetPriceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPriceResponse) GetPrice() uint32
- func (*GetPriceResponse) ProtoMessage()
- func (x *GetPriceResponse) ProtoReflect() protoreflect.Message
- func (x *GetPriceResponse) Reset()
- func (x *GetPriceResponse) String() string
- func (m *GetPriceResponse) Validate() error
- type GetPriceResponseValidationError
- func (e GetPriceResponseValidationError) Cause() error
- func (e GetPriceResponseValidationError) Error() string
- func (e GetPriceResponseValidationError) ErrorName() string
- func (e GetPriceResponseValidationError) Field() string
- func (e GetPriceResponseValidationError) Key() bool
- func (e GetPriceResponseValidationError) Reason() string
- type GetProductRequest
- func (*GetProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductRequest) GetId() uint32
- func (x *GetProductRequest) GetName() string
- func (*GetProductRequest) ProtoMessage()
- func (x *GetProductRequest) ProtoReflect() protoreflect.Message
- func (x *GetProductRequest) Reset()
- func (x *GetProductRequest) String() string
- func (m *GetProductRequest) Validate() error
- type GetProductRequestValidationError
- func (e GetProductRequestValidationError) Cause() error
- func (e GetProductRequestValidationError) Error() string
- func (e GetProductRequestValidationError) ErrorName() string
- func (e GetProductRequestValidationError) Field() string
- func (e GetProductRequestValidationError) Key() bool
- func (e GetProductRequestValidationError) Reason() string
- type GetProductResponse
- func (*GetProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductResponse) GetDescription() string
- func (x *GetProductResponse) GetFullName() string
- func (x *GetProductResponse) GetName() string
- func (x *GetProductResponse) GetPrice() uint32
- func (x *GetProductResponse) GetPriceClass() uint32
- func (x *GetProductResponse) GetPriceRatio() float32
- func (x *GetProductResponse) GetStartingPrice() uint32
- func (*GetProductResponse) ProtoMessage()
- func (x *GetProductResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductResponse) Reset()
- func (x *GetProductResponse) String() string
- func (m *GetProductResponse) Validate() error
- type GetProductResponseValidationError
- func (e GetProductResponseValidationError) Cause() error
- func (e GetProductResponseValidationError) Error() string
- func (e GetProductResponseValidationError) ErrorName() string
- func (e GetProductResponseValidationError) Field() string
- func (e GetProductResponseValidationError) Key() bool
- func (e GetProductResponseValidationError) Reason() string
- type MruVEconomyServiceClient
- type MruVEconomyServiceServer
- type MruVEconomyService_WatchPriceClient
- type MruVEconomyService_WatchPriceServer
- type MruVEconomyService_WatchProductClient
- type MruVEconomyService_WatchProductServer
- type RegisterProductRequest
- func (*RegisterProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterProductRequest) GetDescription() string
- func (x *RegisterProductRequest) GetFullName() string
- func (x *RegisterProductRequest) GetName() string
- func (x *RegisterProductRequest) GetPriceClass() uint32
- func (x *RegisterProductRequest) GetPriceRatio() float32
- func (x *RegisterProductRequest) GetStartingPrice() uint32
- func (*RegisterProductRequest) ProtoMessage()
- func (x *RegisterProductRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterProductRequest) Reset()
- func (x *RegisterProductRequest) String() string
- func (m *RegisterProductRequest) Validate() error
- type RegisterProductRequestValidationError
- func (e RegisterProductRequestValidationError) Cause() error
- func (e RegisterProductRequestValidationError) Error() string
- func (e RegisterProductRequestValidationError) ErrorName() string
- func (e RegisterProductRequestValidationError) Field() string
- func (e RegisterProductRequestValidationError) Key() bool
- func (e RegisterProductRequestValidationError) Reason() string
- type RegisterProductResponse
- func (*RegisterProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterProductResponse) GetId() uint32
- func (*RegisterProductResponse) ProtoMessage()
- func (x *RegisterProductResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterProductResponse) Reset()
- func (x *RegisterProductResponse) String() string
- func (m *RegisterProductResponse) Validate() error
- type RegisterProductResponseValidationError
- func (e RegisterProductResponseValidationError) Cause() error
- func (e RegisterProductResponseValidationError) Error() string
- func (e RegisterProductResponseValidationError) ErrorName() string
- func (e RegisterProductResponseValidationError) Field() string
- func (e RegisterProductResponseValidationError) Key() bool
- func (e RegisterProductResponseValidationError) Reason() string
- type UnimplementedMruVEconomyServiceServer
- func (*UnimplementedMruVEconomyServiceServer) BuyProduct(context.Context, *BuyProductRequest) (*BuyProductResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) RegisterProduct(context.Context, *RegisterProductRequest) (*RegisterProductResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) UpdatePrice(context.Context, *UpdatePriceRequest) (*UpdatePriceResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
- func (*UnimplementedMruVEconomyServiceServer) WatchPrice(*WatchPriceRequest, MruVEconomyService_WatchPriceServer) error
- func (*UnimplementedMruVEconomyServiceServer) WatchProduct(*WatchProductRequest, MruVEconomyService_WatchProductServer) error
- type UpdatePriceRequest
- func (*UpdatePriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePriceRequest) GetId() uint32
- func (x *UpdatePriceRequest) GetName() string
- func (x *UpdatePriceRequest) GetNewPrice() uint32
- func (*UpdatePriceRequest) ProtoMessage()
- func (x *UpdatePriceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePriceRequest) Reset()
- func (x *UpdatePriceRequest) String() string
- func (m *UpdatePriceRequest) Validate() error
- type UpdatePriceRequestValidationError
- func (e UpdatePriceRequestValidationError) Cause() error
- func (e UpdatePriceRequestValidationError) Error() string
- func (e UpdatePriceRequestValidationError) ErrorName() string
- func (e UpdatePriceRequestValidationError) Field() string
- func (e UpdatePriceRequestValidationError) Key() bool
- func (e UpdatePriceRequestValidationError) Reason() string
- type UpdatePriceResponse
- func (*UpdatePriceResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdatePriceResponse) ProtoMessage()
- func (x *UpdatePriceResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePriceResponse) Reset()
- func (x *UpdatePriceResponse) String() string
- func (m *UpdatePriceResponse) Validate() error
- type UpdatePriceResponseValidationError
- func (e UpdatePriceResponseValidationError) Cause() error
- func (e UpdatePriceResponseValidationError) Error() string
- func (e UpdatePriceResponseValidationError) ErrorName() string
- func (e UpdatePriceResponseValidationError) Field() string
- func (e UpdatePriceResponseValidationError) Key() bool
- func (e UpdatePriceResponseValidationError) Reason() string
- type UpdateProductRequest
- func (*UpdateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductRequest) GetDescription() string
- func (x *UpdateProductRequest) GetFullName() string
- func (x *UpdateProductRequest) GetId() uint32
- func (x *UpdateProductRequest) GetName() string
- func (x *UpdateProductRequest) GetPriceClass() uint32
- func (x *UpdateProductRequest) GetPriceRatio() float32
- func (*UpdateProductRequest) ProtoMessage()
- func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductRequest) Reset()
- func (x *UpdateProductRequest) String() string
- func (m *UpdateProductRequest) Validate() error
- type UpdateProductRequestValidationError
- func (e UpdateProductRequestValidationError) Cause() error
- func (e UpdateProductRequestValidationError) Error() string
- func (e UpdateProductRequestValidationError) ErrorName() string
- func (e UpdateProductRequestValidationError) Field() string
- func (e UpdateProductRequestValidationError) Key() bool
- func (e UpdateProductRequestValidationError) Reason() string
- type UpdateProductResponse
- func (*UpdateProductResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateProductResponse) ProtoMessage()
- func (x *UpdateProductResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateProductResponse) Reset()
- func (x *UpdateProductResponse) String() string
- func (m *UpdateProductResponse) Validate() error
- type UpdateProductResponseValidationError
- func (e UpdateProductResponseValidationError) Cause() error
- func (e UpdateProductResponseValidationError) Error() string
- func (e UpdateProductResponseValidationError) ErrorName() string
- func (e UpdateProductResponseValidationError) Field() string
- func (e UpdateProductResponseValidationError) Key() bool
- func (e UpdateProductResponseValidationError) Reason() string
- type WatchPriceRequest
- func (*WatchPriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchPriceRequest) GetId() uint32
- func (x *WatchPriceRequest) GetName() string
- func (*WatchPriceRequest) ProtoMessage()
- func (x *WatchPriceRequest) ProtoReflect() protoreflect.Message
- func (x *WatchPriceRequest) Reset()
- func (x *WatchPriceRequest) String() string
- func (m *WatchPriceRequest) Validate() error
- type WatchPriceRequestValidationError
- func (e WatchPriceRequestValidationError) Cause() error
- func (e WatchPriceRequestValidationError) Error() string
- func (e WatchPriceRequestValidationError) ErrorName() string
- func (e WatchPriceRequestValidationError) Field() string
- func (e WatchPriceRequestValidationError) Key() bool
- func (e WatchPriceRequestValidationError) Reason() string
- type WatchPriceResponse
- func (*WatchPriceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchPriceResponse) GetPrice() uint32
- func (*WatchPriceResponse) ProtoMessage()
- func (x *WatchPriceResponse) ProtoReflect() protoreflect.Message
- func (x *WatchPriceResponse) Reset()
- func (x *WatchPriceResponse) String() string
- func (m *WatchPriceResponse) Validate() error
- type WatchPriceResponseValidationError
- func (e WatchPriceResponseValidationError) Cause() error
- func (e WatchPriceResponseValidationError) Error() string
- func (e WatchPriceResponseValidationError) ErrorName() string
- func (e WatchPriceResponseValidationError) Field() string
- func (e WatchPriceResponseValidationError) Key() bool
- func (e WatchPriceResponseValidationError) Reason() string
- type WatchProductRequest
- func (*WatchProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchProductRequest) GetId() uint32
- func (x *WatchProductRequest) GetName() string
- func (*WatchProductRequest) ProtoMessage()
- func (x *WatchProductRequest) ProtoReflect() protoreflect.Message
- func (x *WatchProductRequest) Reset()
- func (x *WatchProductRequest) String() string
- func (m *WatchProductRequest) Validate() error
- type WatchProductRequestValidationError
- func (e WatchProductRequestValidationError) Cause() error
- func (e WatchProductRequestValidationError) Error() string
- func (e WatchProductRequestValidationError) ErrorName() string
- func (e WatchProductRequestValidationError) Field() string
- func (e WatchProductRequestValidationError) Key() bool
- func (e WatchProductRequestValidationError) Reason() string
- type WatchProductResponse
- func (*WatchProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchProductResponse) GetEvent() WatchProductResponse_ProductEvent
- func (*WatchProductResponse) ProtoMessage()
- func (x *WatchProductResponse) ProtoReflect() protoreflect.Message
- func (x *WatchProductResponse) Reset()
- func (x *WatchProductResponse) String() string
- func (m *WatchProductResponse) Validate() error
- type WatchProductResponseValidationError
- func (e WatchProductResponseValidationError) Cause() error
- func (e WatchProductResponseValidationError) Error() string
- func (e WatchProductResponseValidationError) ErrorName() string
- func (e WatchProductResponseValidationError) Field() string
- func (e WatchProductResponseValidationError) Key() bool
- func (e WatchProductResponseValidationError) Reason() string
- type WatchProductResponse_ProductEvent
- func (WatchProductResponse_ProductEvent) Descriptor() protoreflect.EnumDescriptor
- func (x WatchProductResponse_ProductEvent) Enum() *WatchProductResponse_ProductEvent
- func (WatchProductResponse_ProductEvent) EnumDescriptor() ([]byte, []int)deprecated
- func (x WatchProductResponse_ProductEvent) Number() protoreflect.EnumNumber
- func (x WatchProductResponse_ProductEvent) String() string
- func (WatchProductResponse_ProductEvent) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( WatchProductResponse_ProductEvent_name = map[int32]string{ 0: "UNKNOWN", 1: "PRICE_CHANGED", 2: "PRODUCT_BOUGHT", 3: "PRODUCT_INFO_UPDATED", 4: "PRODUCT_DELETED", } WatchProductResponse_ProductEvent_value = map[string]int32{ "UNKNOWN": 0, "PRICE_CHANGED": 1, "PRODUCT_BOUGHT": 2, "PRODUCT_INFO_UPDATED": 3, "PRODUCT_DELETED": 4, } )
Enum value maps for WatchProductResponse_ProductEvent.
var File_economy_economy_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMruVEconomyServiceHandler ¶
func RegisterMruVEconomyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMruVEconomyServiceHandler registers the http handlers for service MruVEconomyService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMruVEconomyServiceHandlerClient ¶
func RegisterMruVEconomyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVEconomyServiceClient) error
RegisterMruVEconomyServiceHandlerClient registers the http handlers for service MruVEconomyService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVEconomyServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVEconomyServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVEconomyServiceClient" to call the correct interceptors.
func RegisterMruVEconomyServiceHandlerFromEndpoint ¶
func RegisterMruVEconomyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMruVEconomyServiceHandlerFromEndpoint is same as RegisterMruVEconomyServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMruVEconomyServiceHandlerServer ¶
func RegisterMruVEconomyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVEconomyServiceServer) error
RegisterMruVEconomyServiceHandlerServer registers the http handlers for service MruVEconomyService to "mux". UnaryRPC :call MruVEconomyServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMruVEconomyServiceHandlerFromEndpoint instead.
func RegisterMruVEconomyServiceServer ¶
func RegisterMruVEconomyServiceServer(s *grpc.Server, srv MruVEconomyServiceServer)
Types ¶
type BuyProductRequest ¶
type BuyProductRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for rpc `BuyProduct`.
func (*BuyProductRequest) Descriptor
deprecated
func (*BuyProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuyProductRequest.ProtoReflect.Descriptor instead.
func (*BuyProductRequest) GetId ¶
func (x *BuyProductRequest) GetId() uint32
func (*BuyProductRequest) GetName ¶
func (x *BuyProductRequest) GetName() string
func (*BuyProductRequest) ProtoMessage ¶
func (*BuyProductRequest) ProtoMessage()
func (*BuyProductRequest) ProtoReflect ¶ added in v0.8.4
func (x *BuyProductRequest) ProtoReflect() protoreflect.Message
func (*BuyProductRequest) Reset ¶
func (x *BuyProductRequest) Reset()
func (*BuyProductRequest) String ¶
func (x *BuyProductRequest) String() string
func (*BuyProductRequest) Validate ¶
func (m *BuyProductRequest) Validate() error
Validate checks the field values on BuyProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type BuyProductRequestValidationError ¶
type BuyProductRequestValidationError struct {
// contains filtered or unexported fields
}
BuyProductRequestValidationError is the validation error returned by BuyProductRequest.Validate if the designated constraints aren't met.
func (BuyProductRequestValidationError) Cause ¶
func (e BuyProductRequestValidationError) Cause() error
Cause function returns cause value.
func (BuyProductRequestValidationError) Error ¶
func (e BuyProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BuyProductRequestValidationError) ErrorName ¶
func (e BuyProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BuyProductRequestValidationError) Field ¶
func (e BuyProductRequestValidationError) Field() string
Field function returns field value.
func (BuyProductRequestValidationError) Key ¶
func (e BuyProductRequestValidationError) Key() bool
Key function returns key value.
func (BuyProductRequestValidationError) Reason ¶
func (e BuyProductRequestValidationError) Reason() string
Reason function returns reason value.
type BuyProductResponse ¶
type BuyProductResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `BuyProduct`.
func (*BuyProductResponse) Descriptor
deprecated
func (*BuyProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuyProductResponse.ProtoReflect.Descriptor instead.
func (*BuyProductResponse) ProtoMessage ¶
func (*BuyProductResponse) ProtoMessage()
func (*BuyProductResponse) ProtoReflect ¶ added in v0.8.4
func (x *BuyProductResponse) ProtoReflect() protoreflect.Message
func (*BuyProductResponse) Reset ¶
func (x *BuyProductResponse) Reset()
func (*BuyProductResponse) String ¶
func (x *BuyProductResponse) String() string
func (*BuyProductResponse) Validate ¶
func (m *BuyProductResponse) Validate() error
Validate checks the field values on BuyProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type BuyProductResponseValidationError ¶
type BuyProductResponseValidationError struct {
// contains filtered or unexported fields
}
BuyProductResponseValidationError is the validation error returned by BuyProductResponse.Validate if the designated constraints aren't met.
func (BuyProductResponseValidationError) Cause ¶
func (e BuyProductResponseValidationError) Cause() error
Cause function returns cause value.
func (BuyProductResponseValidationError) Error ¶
func (e BuyProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BuyProductResponseValidationError) ErrorName ¶
func (e BuyProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BuyProductResponseValidationError) Field ¶
func (e BuyProductResponseValidationError) Field() string
Field function returns field value.
func (BuyProductResponseValidationError) Key ¶
func (e BuyProductResponseValidationError) Key() bool
Key function returns key value.
func (BuyProductResponseValidationError) Reason ¶
func (e BuyProductResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteProductRequest ¶
type DeleteProductRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for rpc `DeleteProduct`.
func (*DeleteProductRequest) Descriptor
deprecated
func (*DeleteProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductRequest) GetId ¶
func (x *DeleteProductRequest) GetId() uint32
func (*DeleteProductRequest) GetName ¶
func (x *DeleteProductRequest) GetName() string
func (*DeleteProductRequest) ProtoMessage ¶
func (*DeleteProductRequest) ProtoMessage()
func (*DeleteProductRequest) ProtoReflect ¶ added in v0.8.4
func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductRequest) Reset ¶
func (x *DeleteProductRequest) Reset()
func (*DeleteProductRequest) String ¶
func (x *DeleteProductRequest) String() string
func (*DeleteProductRequest) Validate ¶
func (m *DeleteProductRequest) Validate() error
Validate checks the field values on DeleteProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteProductRequestValidationError ¶
type DeleteProductRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteProductRequestValidationError is the validation error returned by DeleteProductRequest.Validate if the designated constraints aren't met.
func (DeleteProductRequestValidationError) Cause ¶
func (e DeleteProductRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductRequestValidationError) Error ¶
func (e DeleteProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductRequestValidationError) ErrorName ¶
func (e DeleteProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductRequestValidationError) Field ¶
func (e DeleteProductRequestValidationError) Field() string
Field function returns field value.
func (DeleteProductRequestValidationError) Key ¶
func (e DeleteProductRequestValidationError) Key() bool
Key function returns key value.
func (DeleteProductRequestValidationError) Reason ¶
func (e DeleteProductRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteProductResponse ¶
type DeleteProductResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `DeleteProduct`.
func (*DeleteProductResponse) Descriptor
deprecated
func (*DeleteProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductResponse.ProtoReflect.Descriptor instead.
func (*DeleteProductResponse) ProtoMessage ¶
func (*DeleteProductResponse) ProtoMessage()
func (*DeleteProductResponse) ProtoReflect ¶ added in v0.8.4
func (x *DeleteProductResponse) ProtoReflect() protoreflect.Message
func (*DeleteProductResponse) Reset ¶
func (x *DeleteProductResponse) Reset()
func (*DeleteProductResponse) String ¶
func (x *DeleteProductResponse) String() string
func (*DeleteProductResponse) Validate ¶
func (m *DeleteProductResponse) Validate() error
Validate checks the field values on DeleteProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteProductResponseValidationError ¶
type DeleteProductResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteProductResponseValidationError is the validation error returned by DeleteProductResponse.Validate if the designated constraints aren't met.
func (DeleteProductResponseValidationError) Cause ¶
func (e DeleteProductResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductResponseValidationError) Error ¶
func (e DeleteProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductResponseValidationError) ErrorName ¶
func (e DeleteProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductResponseValidationError) Field ¶
func (e DeleteProductResponseValidationError) Field() string
Field function returns field value.
func (DeleteProductResponseValidationError) Key ¶
func (e DeleteProductResponseValidationError) Key() bool
Key function returns key value.
func (DeleteProductResponseValidationError) Reason ¶
func (e DeleteProductResponseValidationError) Reason() string
Reason function returns reason value.
type GetPriceRequest ¶
type GetPriceRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetPrice`.
func (*GetPriceRequest) Descriptor
deprecated
func (*GetPriceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPriceRequest.ProtoReflect.Descriptor instead.
func (*GetPriceRequest) GetId ¶
func (x *GetPriceRequest) GetId() uint32
func (*GetPriceRequest) GetName ¶
func (x *GetPriceRequest) GetName() string
func (*GetPriceRequest) ProtoMessage ¶
func (*GetPriceRequest) ProtoMessage()
func (*GetPriceRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetPriceRequest) ProtoReflect() protoreflect.Message
func (*GetPriceRequest) Reset ¶
func (x *GetPriceRequest) Reset()
func (*GetPriceRequest) String ¶
func (x *GetPriceRequest) String() string
func (*GetPriceRequest) Validate ¶
func (m *GetPriceRequest) Validate() error
Validate checks the field values on GetPriceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetPriceRequestValidationError ¶
type GetPriceRequestValidationError struct {
// contains filtered or unexported fields
}
GetPriceRequestValidationError is the validation error returned by GetPriceRequest.Validate if the designated constraints aren't met.
func (GetPriceRequestValidationError) Cause ¶
func (e GetPriceRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPriceRequestValidationError) Error ¶
func (e GetPriceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPriceRequestValidationError) ErrorName ¶
func (e GetPriceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPriceRequestValidationError) Field ¶
func (e GetPriceRequestValidationError) Field() string
Field function returns field value.
func (GetPriceRequestValidationError) Key ¶
func (e GetPriceRequestValidationError) Key() bool
Key function returns key value.
func (GetPriceRequestValidationError) Reason ¶
func (e GetPriceRequestValidationError) Reason() string
Reason function returns reason value.
type GetPriceResponse ¶
type GetPriceResponse struct { Price uint32 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
Response message for rpc `GetPrice`.
func (*GetPriceResponse) Descriptor
deprecated
func (*GetPriceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPriceResponse.ProtoReflect.Descriptor instead.
func (*GetPriceResponse) GetPrice ¶
func (x *GetPriceResponse) GetPrice() uint32
func (*GetPriceResponse) ProtoMessage ¶
func (*GetPriceResponse) ProtoMessage()
func (*GetPriceResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetPriceResponse) ProtoReflect() protoreflect.Message
func (*GetPriceResponse) Reset ¶
func (x *GetPriceResponse) Reset()
func (*GetPriceResponse) String ¶
func (x *GetPriceResponse) String() string
func (*GetPriceResponse) Validate ¶
func (m *GetPriceResponse) Validate() error
Validate checks the field values on GetPriceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetPriceResponseValidationError ¶
type GetPriceResponseValidationError struct {
// contains filtered or unexported fields
}
GetPriceResponseValidationError is the validation error returned by GetPriceResponse.Validate if the designated constraints aren't met.
func (GetPriceResponseValidationError) Cause ¶
func (e GetPriceResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPriceResponseValidationError) Error ¶
func (e GetPriceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPriceResponseValidationError) ErrorName ¶
func (e GetPriceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPriceResponseValidationError) Field ¶
func (e GetPriceResponseValidationError) Field() string
Field function returns field value.
func (GetPriceResponseValidationError) Key ¶
func (e GetPriceResponseValidationError) Key() bool
Key function returns key value.
func (GetPriceResponseValidationError) Reason ¶
func (e GetPriceResponseValidationError) Reason() string
Reason function returns reason value.
type GetProductRequest ¶
type GetProductRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetProduct`.
func (*GetProductRequest) Descriptor
deprecated
func (*GetProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.
func (*GetProductRequest) GetId ¶
func (x *GetProductRequest) GetId() uint32
func (*GetProductRequest) GetName ¶
func (x *GetProductRequest) GetName() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetProductRequest) ProtoReflect() protoreflect.Message
func (*GetProductRequest) Reset ¶
func (x *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (x *GetProductRequest) String() string
func (*GetProductRequest) Validate ¶
func (m *GetProductRequest) Validate() error
Validate checks the field values on GetProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetProductRequestValidationError ¶
type GetProductRequestValidationError struct {
// contains filtered or unexported fields
}
GetProductRequestValidationError is the validation error returned by GetProductRequest.Validate if the designated constraints aren't met.
func (GetProductRequestValidationError) Cause ¶
func (e GetProductRequestValidationError) Cause() error
Cause function returns cause value.
func (GetProductRequestValidationError) Error ¶
func (e GetProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductRequestValidationError) ErrorName ¶
func (e GetProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductRequestValidationError) Field ¶
func (e GetProductRequestValidationError) Field() string
Field function returns field value.
func (GetProductRequestValidationError) Key ¶
func (e GetProductRequestValidationError) Key() bool
Key function returns key value.
func (GetProductRequestValidationError) Reason ¶
func (e GetProductRequestValidationError) Reason() string
Reason function returns reason value.
type GetProductResponse ¶
type GetProductResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` PriceClass uint32 `protobuf:"varint,4,opt,name=price_class,json=priceClass,proto3" json:"price_class,omitempty"` PriceRatio float32 `protobuf:"fixed32,5,opt,name=price_ratio,json=priceRatio,proto3" json:"price_ratio,omitempty"` StartingPrice uint32 `protobuf:"varint,6,opt,name=starting_price,json=startingPrice,proto3" json:"starting_price,omitempty"` Price uint32 `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
Response message for rpc `GetProduct`.
func (*GetProductResponse) Descriptor
deprecated
func (*GetProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.
func (*GetProductResponse) GetDescription ¶
func (x *GetProductResponse) GetDescription() string
func (*GetProductResponse) GetFullName ¶
func (x *GetProductResponse) GetFullName() string
func (*GetProductResponse) GetName ¶
func (x *GetProductResponse) GetName() string
func (*GetProductResponse) GetPrice ¶
func (x *GetProductResponse) GetPrice() uint32
func (*GetProductResponse) GetPriceClass ¶
func (x *GetProductResponse) GetPriceClass() uint32
func (*GetProductResponse) GetPriceRatio ¶
func (x *GetProductResponse) GetPriceRatio() float32
func (*GetProductResponse) GetStartingPrice ¶
func (x *GetProductResponse) GetStartingPrice() uint32
func (*GetProductResponse) ProtoMessage ¶
func (*GetProductResponse) ProtoMessage()
func (*GetProductResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetProductResponse) ProtoReflect() protoreflect.Message
func (*GetProductResponse) Reset ¶
func (x *GetProductResponse) Reset()
func (*GetProductResponse) String ¶
func (x *GetProductResponse) String() string
func (*GetProductResponse) Validate ¶
func (m *GetProductResponse) Validate() error
Validate checks the field values on GetProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetProductResponseValidationError ¶
type GetProductResponseValidationError struct {
// contains filtered or unexported fields
}
GetProductResponseValidationError is the validation error returned by GetProductResponse.Validate if the designated constraints aren't met.
func (GetProductResponseValidationError) Cause ¶
func (e GetProductResponseValidationError) Cause() error
Cause function returns cause value.
func (GetProductResponseValidationError) Error ¶
func (e GetProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductResponseValidationError) ErrorName ¶
func (e GetProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductResponseValidationError) Field ¶
func (e GetProductResponseValidationError) Field() string
Field function returns field value.
func (GetProductResponseValidationError) Key ¶
func (e GetProductResponseValidationError) Key() bool
Key function returns key value.
func (GetProductResponseValidationError) Reason ¶
func (e GetProductResponseValidationError) Reason() string
Reason function returns reason value.
type MruVEconomyServiceClient ¶
type MruVEconomyServiceClient interface { // Register price in economy system. RegisterProduct(ctx context.Context, in *RegisterProductRequest, opts ...grpc.CallOption) (*RegisterProductResponse, error) // Get product information. GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error) // Update product information. UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*UpdateProductResponse, error) // DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*DeleteProductResponse, error) // Update product price. UpdatePrice(ctx context.Context, in *UpdatePriceRequest, opts ...grpc.CallOption) (*UpdatePriceResponse, error) // Get current value for registered price. GetPrice(ctx context.Context, in *GetPriceRequest, opts ...grpc.CallOption) (*GetPriceResponse, error) // Send information to the system, that the product has been purchased. // This rpc call can affect a product price. BuyProduct(ctx context.Context, in *BuyProductRequest, opts ...grpc.CallOption) (*BuyProductResponse, error) // Subscribe to events related to a product. WatchProduct(ctx context.Context, in *WatchProductRequest, opts ...grpc.CallOption) (MruVEconomyService_WatchProductClient, error) // Subscribe to product price changes. WatchPrice(ctx context.Context, in *WatchPriceRequest, opts ...grpc.CallOption) (MruVEconomyService_WatchPriceClient, error) }
MruVEconomyServiceClient is the client API for MruVEconomyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMruVEconomyServiceClient ¶
func NewMruVEconomyServiceClient(cc grpc.ClientConnInterface) MruVEconomyServiceClient
type MruVEconomyServiceServer ¶
type MruVEconomyServiceServer interface { // Register price in economy system. RegisterProduct(context.Context, *RegisterProductRequest) (*RegisterProductResponse, error) // Get product information. GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error) // Update product information. UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error) // DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error) // Update product price. UpdatePrice(context.Context, *UpdatePriceRequest) (*UpdatePriceResponse, error) // Get current value for registered price. GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error) // Send information to the system, that the product has been purchased. // This rpc call can affect a product price. BuyProduct(context.Context, *BuyProductRequest) (*BuyProductResponse, error) // Subscribe to events related to a product. WatchProduct(*WatchProductRequest, MruVEconomyService_WatchProductServer) error // Subscribe to product price changes. WatchPrice(*WatchPriceRequest, MruVEconomyService_WatchPriceServer) error }
MruVEconomyServiceServer is the server API for MruVEconomyService service.
type MruVEconomyService_WatchPriceClient ¶
type MruVEconomyService_WatchPriceClient interface { Recv() (*WatchPriceResponse, error) grpc.ClientStream }
type MruVEconomyService_WatchPriceServer ¶
type MruVEconomyService_WatchPriceServer interface { Send(*WatchPriceResponse) error grpc.ServerStream }
type MruVEconomyService_WatchProductClient ¶
type MruVEconomyService_WatchProductClient interface { Recv() (*WatchProductResponse, error) grpc.ClientStream }
type MruVEconomyService_WatchProductServer ¶
type MruVEconomyService_WatchProductServer interface { Send(*WatchProductResponse) error grpc.ServerStream }
type RegisterProductRequest ¶
type RegisterProductRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` PriceClass uint32 `protobuf:"varint,4,opt,name=price_class,json=priceClass,proto3" json:"price_class,omitempty"` PriceRatio float32 `protobuf:"fixed32,5,opt,name=price_ratio,json=priceRatio,proto3" json:"price_ratio,omitempty"` StartingPrice uint32 `protobuf:"varint,6,opt,name=starting_price,json=startingPrice,proto3" json:"starting_price,omitempty"` // contains filtered or unexported fields }
Request message for rpc `RegisterProduct`.
func (*RegisterProductRequest) Descriptor
deprecated
func (*RegisterProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterProductRequest.ProtoReflect.Descriptor instead.
func (*RegisterProductRequest) GetDescription ¶
func (x *RegisterProductRequest) GetDescription() string
func (*RegisterProductRequest) GetFullName ¶
func (x *RegisterProductRequest) GetFullName() string
func (*RegisterProductRequest) GetName ¶
func (x *RegisterProductRequest) GetName() string
func (*RegisterProductRequest) GetPriceClass ¶
func (x *RegisterProductRequest) GetPriceClass() uint32
func (*RegisterProductRequest) GetPriceRatio ¶
func (x *RegisterProductRequest) GetPriceRatio() float32
func (*RegisterProductRequest) GetStartingPrice ¶
func (x *RegisterProductRequest) GetStartingPrice() uint32
func (*RegisterProductRequest) ProtoMessage ¶
func (*RegisterProductRequest) ProtoMessage()
func (*RegisterProductRequest) ProtoReflect ¶ added in v0.8.4
func (x *RegisterProductRequest) ProtoReflect() protoreflect.Message
func (*RegisterProductRequest) Reset ¶
func (x *RegisterProductRequest) Reset()
func (*RegisterProductRequest) String ¶
func (x *RegisterProductRequest) String() string
func (*RegisterProductRequest) Validate ¶
func (m *RegisterProductRequest) Validate() error
Validate checks the field values on RegisterProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RegisterProductRequestValidationError ¶
type RegisterProductRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterProductRequestValidationError is the validation error returned by RegisterProductRequest.Validate if the designated constraints aren't met.
func (RegisterProductRequestValidationError) Cause ¶
func (e RegisterProductRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterProductRequestValidationError) Error ¶
func (e RegisterProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterProductRequestValidationError) ErrorName ¶
func (e RegisterProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterProductRequestValidationError) Field ¶
func (e RegisterProductRequestValidationError) Field() string
Field function returns field value.
func (RegisterProductRequestValidationError) Key ¶
func (e RegisterProductRequestValidationError) Key() bool
Key function returns key value.
func (RegisterProductRequestValidationError) Reason ¶
func (e RegisterProductRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterProductResponse ¶
type RegisterProductResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Response message for rpc `RegisterProduct`.
func (*RegisterProductResponse) Descriptor
deprecated
func (*RegisterProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterProductResponse.ProtoReflect.Descriptor instead.
func (*RegisterProductResponse) GetId ¶
func (x *RegisterProductResponse) GetId() uint32
func (*RegisterProductResponse) ProtoMessage ¶
func (*RegisterProductResponse) ProtoMessage()
func (*RegisterProductResponse) ProtoReflect ¶ added in v0.8.4
func (x *RegisterProductResponse) ProtoReflect() protoreflect.Message
func (*RegisterProductResponse) Reset ¶
func (x *RegisterProductResponse) Reset()
func (*RegisterProductResponse) String ¶
func (x *RegisterProductResponse) String() string
func (*RegisterProductResponse) Validate ¶
func (m *RegisterProductResponse) Validate() error
Validate checks the field values on RegisterProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RegisterProductResponseValidationError ¶
type RegisterProductResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterProductResponseValidationError is the validation error returned by RegisterProductResponse.Validate if the designated constraints aren't met.
func (RegisterProductResponseValidationError) Cause ¶
func (e RegisterProductResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterProductResponseValidationError) Error ¶
func (e RegisterProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterProductResponseValidationError) ErrorName ¶
func (e RegisterProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterProductResponseValidationError) Field ¶
func (e RegisterProductResponseValidationError) Field() string
Field function returns field value.
func (RegisterProductResponseValidationError) Key ¶
func (e RegisterProductResponseValidationError) Key() bool
Key function returns key value.
func (RegisterProductResponseValidationError) Reason ¶
func (e RegisterProductResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMruVEconomyServiceServer ¶
type UnimplementedMruVEconomyServiceServer struct { }
UnimplementedMruVEconomyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVEconomyServiceServer) BuyProduct ¶
func (*UnimplementedMruVEconomyServiceServer) BuyProduct(context.Context, *BuyProductRequest) (*BuyProductResponse, error)
func (*UnimplementedMruVEconomyServiceServer) DeleteProduct ¶
func (*UnimplementedMruVEconomyServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
func (*UnimplementedMruVEconomyServiceServer) GetPrice ¶
func (*UnimplementedMruVEconomyServiceServer) GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error)
func (*UnimplementedMruVEconomyServiceServer) GetProduct ¶
func (*UnimplementedMruVEconomyServiceServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
func (*UnimplementedMruVEconomyServiceServer) RegisterProduct ¶
func (*UnimplementedMruVEconomyServiceServer) RegisterProduct(context.Context, *RegisterProductRequest) (*RegisterProductResponse, error)
func (*UnimplementedMruVEconomyServiceServer) UpdatePrice ¶
func (*UnimplementedMruVEconomyServiceServer) UpdatePrice(context.Context, *UpdatePriceRequest) (*UpdatePriceResponse, error)
func (*UnimplementedMruVEconomyServiceServer) UpdateProduct ¶
func (*UnimplementedMruVEconomyServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
func (*UnimplementedMruVEconomyServiceServer) WatchPrice ¶
func (*UnimplementedMruVEconomyServiceServer) WatchPrice(*WatchPriceRequest, MruVEconomyService_WatchPriceServer) error
func (*UnimplementedMruVEconomyServiceServer) WatchProduct ¶
func (*UnimplementedMruVEconomyServiceServer) WatchProduct(*WatchProductRequest, MruVEconomyService_WatchProductServer) error
type UpdatePriceRequest ¶
type UpdatePriceRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` NewPrice uint32 `protobuf:"varint,3,opt,name=new_price,json=newPrice,proto3" json:"new_price,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UpdatePrice`.
func (*UpdatePriceRequest) Descriptor
deprecated
func (*UpdatePriceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePriceRequest.ProtoReflect.Descriptor instead.
func (*UpdatePriceRequest) GetId ¶
func (x *UpdatePriceRequest) GetId() uint32
func (*UpdatePriceRequest) GetName ¶
func (x *UpdatePriceRequest) GetName() string
func (*UpdatePriceRequest) GetNewPrice ¶
func (x *UpdatePriceRequest) GetNewPrice() uint32
func (*UpdatePriceRequest) ProtoMessage ¶
func (*UpdatePriceRequest) ProtoMessage()
func (*UpdatePriceRequest) ProtoReflect ¶ added in v0.8.4
func (x *UpdatePriceRequest) ProtoReflect() protoreflect.Message
func (*UpdatePriceRequest) Reset ¶
func (x *UpdatePriceRequest) Reset()
func (*UpdatePriceRequest) String ¶
func (x *UpdatePriceRequest) String() string
func (*UpdatePriceRequest) Validate ¶
func (m *UpdatePriceRequest) Validate() error
Validate checks the field values on UpdatePriceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdatePriceRequestValidationError ¶
type UpdatePriceRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePriceRequestValidationError is the validation error returned by UpdatePriceRequest.Validate if the designated constraints aren't met.
func (UpdatePriceRequestValidationError) Cause ¶
func (e UpdatePriceRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePriceRequestValidationError) Error ¶
func (e UpdatePriceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePriceRequestValidationError) ErrorName ¶
func (e UpdatePriceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePriceRequestValidationError) Field ¶
func (e UpdatePriceRequestValidationError) Field() string
Field function returns field value.
func (UpdatePriceRequestValidationError) Key ¶
func (e UpdatePriceRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePriceRequestValidationError) Reason ¶
func (e UpdatePriceRequestValidationError) Reason() string
Reason function returns reason value.
type UpdatePriceResponse ¶
type UpdatePriceResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UpdatePrice`.
func (*UpdatePriceResponse) Descriptor
deprecated
func (*UpdatePriceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePriceResponse.ProtoReflect.Descriptor instead.
func (*UpdatePriceResponse) ProtoMessage ¶
func (*UpdatePriceResponse) ProtoMessage()
func (*UpdatePriceResponse) ProtoReflect ¶ added in v0.8.4
func (x *UpdatePriceResponse) ProtoReflect() protoreflect.Message
func (*UpdatePriceResponse) Reset ¶
func (x *UpdatePriceResponse) Reset()
func (*UpdatePriceResponse) String ¶
func (x *UpdatePriceResponse) String() string
func (*UpdatePriceResponse) Validate ¶
func (m *UpdatePriceResponse) Validate() error
Validate checks the field values on UpdatePriceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdatePriceResponseValidationError ¶
type UpdatePriceResponseValidationError struct {
// contains filtered or unexported fields
}
UpdatePriceResponseValidationError is the validation error returned by UpdatePriceResponse.Validate if the designated constraints aren't met.
func (UpdatePriceResponseValidationError) Cause ¶
func (e UpdatePriceResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdatePriceResponseValidationError) Error ¶
func (e UpdatePriceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePriceResponseValidationError) ErrorName ¶
func (e UpdatePriceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePriceResponseValidationError) Field ¶
func (e UpdatePriceResponseValidationError) Field() string
Field function returns field value.
func (UpdatePriceResponseValidationError) Key ¶
func (e UpdatePriceResponseValidationError) Key() bool
Key function returns key value.
func (UpdatePriceResponseValidationError) Reason ¶
func (e UpdatePriceResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateProductRequest ¶
type UpdateProductRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` PriceClass uint32 `protobuf:"varint,5,opt,name=price_class,json=priceClass,proto3" json:"price_class,omitempty"` PriceRatio float32 `protobuf:"fixed32,6,opt,name=price_ratio,json=priceRatio,proto3" json:"price_ratio,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UpdateProduct`.
func (*UpdateProductRequest) Descriptor
deprecated
func (*UpdateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.
func (*UpdateProductRequest) GetDescription ¶
func (x *UpdateProductRequest) GetDescription() string
func (*UpdateProductRequest) GetFullName ¶
func (x *UpdateProductRequest) GetFullName() string
func (*UpdateProductRequest) GetId ¶
func (x *UpdateProductRequest) GetId() uint32
func (*UpdateProductRequest) GetName ¶
func (x *UpdateProductRequest) GetName() string
func (*UpdateProductRequest) GetPriceClass ¶
func (x *UpdateProductRequest) GetPriceClass() uint32
func (*UpdateProductRequest) GetPriceRatio ¶
func (x *UpdateProductRequest) GetPriceRatio() float32
func (*UpdateProductRequest) ProtoMessage ¶
func (*UpdateProductRequest) ProtoMessage()
func (*UpdateProductRequest) ProtoReflect ¶ added in v0.8.4
func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
func (*UpdateProductRequest) Reset ¶
func (x *UpdateProductRequest) Reset()
func (*UpdateProductRequest) String ¶
func (x *UpdateProductRequest) String() string
func (*UpdateProductRequest) Validate ¶
func (m *UpdateProductRequest) Validate() error
Validate checks the field values on UpdateProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateProductRequestValidationError ¶
type UpdateProductRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateProductRequestValidationError is the validation error returned by UpdateProductRequest.Validate if the designated constraints aren't met.
func (UpdateProductRequestValidationError) Cause ¶
func (e UpdateProductRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateProductRequestValidationError) Error ¶
func (e UpdateProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateProductRequestValidationError) ErrorName ¶
func (e UpdateProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateProductRequestValidationError) Field ¶
func (e UpdateProductRequestValidationError) Field() string
Field function returns field value.
func (UpdateProductRequestValidationError) Key ¶
func (e UpdateProductRequestValidationError) Key() bool
Key function returns key value.
func (UpdateProductRequestValidationError) Reason ¶
func (e UpdateProductRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateProductResponse ¶
type UpdateProductResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UpdateProduct`.
func (*UpdateProductResponse) Descriptor
deprecated
func (*UpdateProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductResponse.ProtoReflect.Descriptor instead.
func (*UpdateProductResponse) ProtoMessage ¶
func (*UpdateProductResponse) ProtoMessage()
func (*UpdateProductResponse) ProtoReflect ¶ added in v0.8.4
func (x *UpdateProductResponse) ProtoReflect() protoreflect.Message
func (*UpdateProductResponse) Reset ¶
func (x *UpdateProductResponse) Reset()
func (*UpdateProductResponse) String ¶
func (x *UpdateProductResponse) String() string
func (*UpdateProductResponse) Validate ¶
func (m *UpdateProductResponse) Validate() error
Validate checks the field values on UpdateProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateProductResponseValidationError ¶
type UpdateProductResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateProductResponseValidationError is the validation error returned by UpdateProductResponse.Validate if the designated constraints aren't met.
func (UpdateProductResponseValidationError) Cause ¶
func (e UpdateProductResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateProductResponseValidationError) Error ¶
func (e UpdateProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateProductResponseValidationError) ErrorName ¶
func (e UpdateProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateProductResponseValidationError) Field ¶
func (e UpdateProductResponseValidationError) Field() string
Field function returns field value.
func (UpdateProductResponseValidationError) Key ¶
func (e UpdateProductResponseValidationError) Key() bool
Key function returns key value.
func (UpdateProductResponseValidationError) Reason ¶
func (e UpdateProductResponseValidationError) Reason() string
Reason function returns reason value.
type WatchPriceRequest ¶
type WatchPriceRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for rpc `WatchPrice`.
func (*WatchPriceRequest) Descriptor
deprecated
func (*WatchPriceRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchPriceRequest.ProtoReflect.Descriptor instead.
func (*WatchPriceRequest) GetId ¶
func (x *WatchPriceRequest) GetId() uint32
func (*WatchPriceRequest) GetName ¶
func (x *WatchPriceRequest) GetName() string
func (*WatchPriceRequest) ProtoMessage ¶
func (*WatchPriceRequest) ProtoMessage()
func (*WatchPriceRequest) ProtoReflect ¶ added in v0.8.4
func (x *WatchPriceRequest) ProtoReflect() protoreflect.Message
func (*WatchPriceRequest) Reset ¶
func (x *WatchPriceRequest) Reset()
func (*WatchPriceRequest) String ¶
func (x *WatchPriceRequest) String() string
func (*WatchPriceRequest) Validate ¶
func (m *WatchPriceRequest) Validate() error
Validate checks the field values on WatchPriceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WatchPriceRequestValidationError ¶
type WatchPriceRequestValidationError struct {
// contains filtered or unexported fields
}
WatchPriceRequestValidationError is the validation error returned by WatchPriceRequest.Validate if the designated constraints aren't met.
func (WatchPriceRequestValidationError) Cause ¶
func (e WatchPriceRequestValidationError) Cause() error
Cause function returns cause value.
func (WatchPriceRequestValidationError) Error ¶
func (e WatchPriceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WatchPriceRequestValidationError) ErrorName ¶
func (e WatchPriceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WatchPriceRequestValidationError) Field ¶
func (e WatchPriceRequestValidationError) Field() string
Field function returns field value.
func (WatchPriceRequestValidationError) Key ¶
func (e WatchPriceRequestValidationError) Key() bool
Key function returns key value.
func (WatchPriceRequestValidationError) Reason ¶
func (e WatchPriceRequestValidationError) Reason() string
Reason function returns reason value.
type WatchPriceResponse ¶
type WatchPriceResponse struct { Price uint32 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
Response message for rpc `WatchPrice`.
func (*WatchPriceResponse) Descriptor
deprecated
func (*WatchPriceResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchPriceResponse.ProtoReflect.Descriptor instead.
func (*WatchPriceResponse) GetPrice ¶
func (x *WatchPriceResponse) GetPrice() uint32
func (*WatchPriceResponse) ProtoMessage ¶
func (*WatchPriceResponse) ProtoMessage()
func (*WatchPriceResponse) ProtoReflect ¶ added in v0.8.4
func (x *WatchPriceResponse) ProtoReflect() protoreflect.Message
func (*WatchPriceResponse) Reset ¶
func (x *WatchPriceResponse) Reset()
func (*WatchPriceResponse) String ¶
func (x *WatchPriceResponse) String() string
func (*WatchPriceResponse) Validate ¶
func (m *WatchPriceResponse) Validate() error
Validate checks the field values on WatchPriceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WatchPriceResponseValidationError ¶
type WatchPriceResponseValidationError struct {
// contains filtered or unexported fields
}
WatchPriceResponseValidationError is the validation error returned by WatchPriceResponse.Validate if the designated constraints aren't met.
func (WatchPriceResponseValidationError) Cause ¶
func (e WatchPriceResponseValidationError) Cause() error
Cause function returns cause value.
func (WatchPriceResponseValidationError) Error ¶
func (e WatchPriceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WatchPriceResponseValidationError) ErrorName ¶
func (e WatchPriceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WatchPriceResponseValidationError) Field ¶
func (e WatchPriceResponseValidationError) Field() string
Field function returns field value.
func (WatchPriceResponseValidationError) Key ¶
func (e WatchPriceResponseValidationError) Key() bool
Key function returns key value.
func (WatchPriceResponseValidationError) Reason ¶
func (e WatchPriceResponseValidationError) Reason() string
Reason function returns reason value.
type WatchProductRequest ¶
type WatchProductRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for rpc `WatchProduct`.
func (*WatchProductRequest) Descriptor
deprecated
func (*WatchProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchProductRequest.ProtoReflect.Descriptor instead.
func (*WatchProductRequest) GetId ¶
func (x *WatchProductRequest) GetId() uint32
func (*WatchProductRequest) GetName ¶
func (x *WatchProductRequest) GetName() string
func (*WatchProductRequest) ProtoMessage ¶
func (*WatchProductRequest) ProtoMessage()
func (*WatchProductRequest) ProtoReflect ¶ added in v0.8.4
func (x *WatchProductRequest) ProtoReflect() protoreflect.Message
func (*WatchProductRequest) Reset ¶
func (x *WatchProductRequest) Reset()
func (*WatchProductRequest) String ¶
func (x *WatchProductRequest) String() string
func (*WatchProductRequest) Validate ¶
func (m *WatchProductRequest) Validate() error
Validate checks the field values on WatchProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WatchProductRequestValidationError ¶
type WatchProductRequestValidationError struct {
// contains filtered or unexported fields
}
WatchProductRequestValidationError is the validation error returned by WatchProductRequest.Validate if the designated constraints aren't met.
func (WatchProductRequestValidationError) Cause ¶
func (e WatchProductRequestValidationError) Cause() error
Cause function returns cause value.
func (WatchProductRequestValidationError) Error ¶
func (e WatchProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WatchProductRequestValidationError) ErrorName ¶
func (e WatchProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WatchProductRequestValidationError) Field ¶
func (e WatchProductRequestValidationError) Field() string
Field function returns field value.
func (WatchProductRequestValidationError) Key ¶
func (e WatchProductRequestValidationError) Key() bool
Key function returns key value.
func (WatchProductRequestValidationError) Reason ¶
func (e WatchProductRequestValidationError) Reason() string
Reason function returns reason value.
type WatchProductResponse ¶
type WatchProductResponse struct { Event WatchProductResponse_ProductEvent `protobuf:"varint,1,opt,name=event,proto3,enum=mruv.economy.WatchProductResponse_ProductEvent" json:"event,omitempty"` // contains filtered or unexported fields }
Response message for rpc `WatchProduct`.
func (*WatchProductResponse) Descriptor
deprecated
func (*WatchProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchProductResponse.ProtoReflect.Descriptor instead.
func (*WatchProductResponse) GetEvent ¶
func (x *WatchProductResponse) GetEvent() WatchProductResponse_ProductEvent
func (*WatchProductResponse) ProtoMessage ¶
func (*WatchProductResponse) ProtoMessage()
func (*WatchProductResponse) ProtoReflect ¶ added in v0.8.4
func (x *WatchProductResponse) ProtoReflect() protoreflect.Message
func (*WatchProductResponse) Reset ¶
func (x *WatchProductResponse) Reset()
func (*WatchProductResponse) String ¶
func (x *WatchProductResponse) String() string
func (*WatchProductResponse) Validate ¶
func (m *WatchProductResponse) Validate() error
Validate checks the field values on WatchProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WatchProductResponseValidationError ¶
type WatchProductResponseValidationError struct {
// contains filtered or unexported fields
}
WatchProductResponseValidationError is the validation error returned by WatchProductResponse.Validate if the designated constraints aren't met.
func (WatchProductResponseValidationError) Cause ¶
func (e WatchProductResponseValidationError) Cause() error
Cause function returns cause value.
func (WatchProductResponseValidationError) Error ¶
func (e WatchProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WatchProductResponseValidationError) ErrorName ¶
func (e WatchProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WatchProductResponseValidationError) Field ¶
func (e WatchProductResponseValidationError) Field() string
Field function returns field value.
func (WatchProductResponseValidationError) Key ¶
func (e WatchProductResponseValidationError) Key() bool
Key function returns key value.
func (WatchProductResponseValidationError) Reason ¶
func (e WatchProductResponseValidationError) Reason() string
Reason function returns reason value.
type WatchProductResponse_ProductEvent ¶
type WatchProductResponse_ProductEvent int32
const ( WatchProductResponse_UNKNOWN WatchProductResponse_ProductEvent = 0 WatchProductResponse_PRICE_CHANGED WatchProductResponse_ProductEvent = 1 WatchProductResponse_PRODUCT_BOUGHT WatchProductResponse_ProductEvent = 2 WatchProductResponse_PRODUCT_INFO_UPDATED WatchProductResponse_ProductEvent = 3 WatchProductResponse_PRODUCT_DELETED WatchProductResponse_ProductEvent = 4 )
func (WatchProductResponse_ProductEvent) Descriptor ¶ added in v0.8.4
func (WatchProductResponse_ProductEvent) Descriptor() protoreflect.EnumDescriptor
func (WatchProductResponse_ProductEvent) Enum ¶ added in v0.8.4
func (x WatchProductResponse_ProductEvent) Enum() *WatchProductResponse_ProductEvent
func (WatchProductResponse_ProductEvent) EnumDescriptor
deprecated
func (WatchProductResponse_ProductEvent) EnumDescriptor() ([]byte, []int)
Deprecated: Use WatchProductResponse_ProductEvent.Descriptor instead.
func (WatchProductResponse_ProductEvent) Number ¶ added in v0.8.4
func (x WatchProductResponse_ProductEvent) Number() protoreflect.EnumNumber
func (WatchProductResponse_ProductEvent) String ¶
func (x WatchProductResponse_ProductEvent) String() string
func (WatchProductResponse_ProductEvent) Type ¶ added in v0.8.4
func (WatchProductResponse_ProductEvent) Type() protoreflect.EnumType