Documentation ¶
Overview ¶
Package omp_basket_api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterOmpBasketApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOmpBasketApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OmpBasketApiServiceClient) error
- func RegisterOmpBasketApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOmpBasketApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OmpBasketApiServiceServer) error
- func RegisterOmpBasketApiServiceServer(s grpc.ServiceRegistrar, srv OmpBasketApiServiceServer)
- type Basket
- func (*Basket) Descriptor() ([]byte, []int)deprecated
- func (x *Basket) GetId() uint64
- func (x *Basket) GetProduct() []*Product
- func (x *Basket) GetUserId() uint64
- func (*Basket) ProtoMessage()
- func (x *Basket) ProtoReflect() protoreflect.Message
- func (x *Basket) Reset()
- func (x *Basket) String() string
- func (m *Basket) Validate() error
- func (m *Basket) ValidateAll() error
- type BasketMultiError
- type BasketValidationError
- type CreateBasketV1Request
- func (*CreateBasketV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBasketV1Request) GetBasket() *Basket
- func (*CreateBasketV1Request) ProtoMessage()
- func (x *CreateBasketV1Request) ProtoReflect() protoreflect.Message
- func (x *CreateBasketV1Request) Reset()
- func (x *CreateBasketV1Request) String() string
- func (m *CreateBasketV1Request) Validate() error
- func (m *CreateBasketV1Request) ValidateAll() error
- type CreateBasketV1RequestMultiError
- type CreateBasketV1RequestValidationError
- func (e CreateBasketV1RequestValidationError) Cause() error
- func (e CreateBasketV1RequestValidationError) Error() string
- func (e CreateBasketV1RequestValidationError) ErrorName() string
- func (e CreateBasketV1RequestValidationError) Field() string
- func (e CreateBasketV1RequestValidationError) Key() bool
- func (e CreateBasketV1RequestValidationError) Reason() string
- type CreateBasketV1Response
- func (*CreateBasketV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBasketV1Response) GetBasketId() uint64
- func (*CreateBasketV1Response) ProtoMessage()
- func (x *CreateBasketV1Response) ProtoReflect() protoreflect.Message
- func (x *CreateBasketV1Response) Reset()
- func (x *CreateBasketV1Response) String() string
- func (m *CreateBasketV1Response) Validate() error
- func (m *CreateBasketV1Response) ValidateAll() error
- type CreateBasketV1ResponseMultiError
- type CreateBasketV1ResponseValidationError
- func (e CreateBasketV1ResponseValidationError) Cause() error
- func (e CreateBasketV1ResponseValidationError) Error() string
- func (e CreateBasketV1ResponseValidationError) ErrorName() string
- func (e CreateBasketV1ResponseValidationError) Field() string
- func (e CreateBasketV1ResponseValidationError) Key() bool
- func (e CreateBasketV1ResponseValidationError) Reason() string
- type DescribeBasketV1Request
- func (*DescribeBasketV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeBasketV1Request) GetBasketId() uint64
- func (*DescribeBasketV1Request) ProtoMessage()
- func (x *DescribeBasketV1Request) ProtoReflect() protoreflect.Message
- func (x *DescribeBasketV1Request) Reset()
- func (x *DescribeBasketV1Request) String() string
- func (m *DescribeBasketV1Request) Validate() error
- func (m *DescribeBasketV1Request) ValidateAll() error
- type DescribeBasketV1RequestMultiError
- type DescribeBasketV1RequestValidationError
- func (e DescribeBasketV1RequestValidationError) Cause() error
- func (e DescribeBasketV1RequestValidationError) Error() string
- func (e DescribeBasketV1RequestValidationError) ErrorName() string
- func (e DescribeBasketV1RequestValidationError) Field() string
- func (e DescribeBasketV1RequestValidationError) Key() bool
- func (e DescribeBasketV1RequestValidationError) Reason() string
- type DescribeBasketV1Response
- func (*DescribeBasketV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeBasketV1Response) GetBasket() *Basket
- func (*DescribeBasketV1Response) ProtoMessage()
- func (x *DescribeBasketV1Response) ProtoReflect() protoreflect.Message
- func (x *DescribeBasketV1Response) Reset()
- func (x *DescribeBasketV1Response) String() string
- func (m *DescribeBasketV1Response) Validate() error
- func (m *DescribeBasketV1Response) ValidateAll() error
- type DescribeBasketV1ResponseMultiError
- type DescribeBasketV1ResponseValidationError
- func (e DescribeBasketV1ResponseValidationError) Cause() error
- func (e DescribeBasketV1ResponseValidationError) Error() string
- func (e DescribeBasketV1ResponseValidationError) ErrorName() string
- func (e DescribeBasketV1ResponseValidationError) Field() string
- func (e DescribeBasketV1ResponseValidationError) Key() bool
- func (e DescribeBasketV1ResponseValidationError) Reason() string
- type ListBasketsV1Request
- func (*ListBasketsV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *ListBasketsV1Request) GetLimit() uint64
- func (x *ListBasketsV1Request) GetOffset() uint64
- func (*ListBasketsV1Request) ProtoMessage()
- func (x *ListBasketsV1Request) ProtoReflect() protoreflect.Message
- func (x *ListBasketsV1Request) Reset()
- func (x *ListBasketsV1Request) String() string
- func (m *ListBasketsV1Request) Validate() error
- func (m *ListBasketsV1Request) ValidateAll() error
- type ListBasketsV1RequestMultiError
- type ListBasketsV1RequestValidationError
- func (e ListBasketsV1RequestValidationError) Cause() error
- func (e ListBasketsV1RequestValidationError) Error() string
- func (e ListBasketsV1RequestValidationError) ErrorName() string
- func (e ListBasketsV1RequestValidationError) Field() string
- func (e ListBasketsV1RequestValidationError) Key() bool
- func (e ListBasketsV1RequestValidationError) Reason() string
- type ListBasketsV1Response
- func (*ListBasketsV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *ListBasketsV1Response) GetBaskets() []*Basket
- func (*ListBasketsV1Response) ProtoMessage()
- func (x *ListBasketsV1Response) ProtoReflect() protoreflect.Message
- func (x *ListBasketsV1Response) Reset()
- func (x *ListBasketsV1Response) String() string
- func (m *ListBasketsV1Response) Validate() error
- func (m *ListBasketsV1Response) ValidateAll() error
- type ListBasketsV1ResponseMultiError
- type ListBasketsV1ResponseValidationError
- func (e ListBasketsV1ResponseValidationError) Cause() error
- func (e ListBasketsV1ResponseValidationError) Error() string
- func (e ListBasketsV1ResponseValidationError) ErrorName() string
- func (e ListBasketsV1ResponseValidationError) Field() string
- func (e ListBasketsV1ResponseValidationError) Key() bool
- func (e ListBasketsV1ResponseValidationError) Reason() string
- type OmpBasketApiServiceClient
- type OmpBasketApiServiceServer
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetAmount() uint64
- func (x *Product) GetId() uint64
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- func (m *Product) Validate() error
- func (m *Product) ValidateAll() error
- type ProductMultiError
- type ProductValidationError
- type RemoveBasketV1Request
- func (*RemoveBasketV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveBasketV1Request) GetBasketId() uint64
- func (*RemoveBasketV1Request) ProtoMessage()
- func (x *RemoveBasketV1Request) ProtoReflect() protoreflect.Message
- func (x *RemoveBasketV1Request) Reset()
- func (x *RemoveBasketV1Request) String() string
- func (m *RemoveBasketV1Request) Validate() error
- func (m *RemoveBasketV1Request) ValidateAll() error
- type RemoveBasketV1RequestMultiError
- type RemoveBasketV1RequestValidationError
- func (e RemoveBasketV1RequestValidationError) Cause() error
- func (e RemoveBasketV1RequestValidationError) Error() string
- func (e RemoveBasketV1RequestValidationError) ErrorName() string
- func (e RemoveBasketV1RequestValidationError) Field() string
- func (e RemoveBasketV1RequestValidationError) Key() bool
- func (e RemoveBasketV1RequestValidationError) Reason() string
- type RemoveBasketV1Response
- func (*RemoveBasketV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveBasketV1Response) GetFound() bool
- func (*RemoveBasketV1Response) ProtoMessage()
- func (x *RemoveBasketV1Response) ProtoReflect() protoreflect.Message
- func (x *RemoveBasketV1Response) Reset()
- func (x *RemoveBasketV1Response) String() string
- func (m *RemoveBasketV1Response) Validate() error
- func (m *RemoveBasketV1Response) ValidateAll() error
- type RemoveBasketV1ResponseMultiError
- type RemoveBasketV1ResponseValidationError
- func (e RemoveBasketV1ResponseValidationError) Cause() error
- func (e RemoveBasketV1ResponseValidationError) Error() string
- func (e RemoveBasketV1ResponseValidationError) ErrorName() string
- func (e RemoveBasketV1ResponseValidationError) Field() string
- func (e RemoveBasketV1ResponseValidationError) Key() bool
- func (e RemoveBasketV1ResponseValidationError) Reason() string
- type UnimplementedOmpBasketApiServiceServer
- func (UnimplementedOmpBasketApiServiceServer) CreateBasketV1(context.Context, *CreateBasketV1Request) (*CreateBasketV1Response, error)
- func (UnimplementedOmpBasketApiServiceServer) DescribeBasketV1(context.Context, *DescribeBasketV1Request) (*DescribeBasketV1Response, error)
- func (UnimplementedOmpBasketApiServiceServer) ListBasketsV1(context.Context, *ListBasketsV1Request) (*ListBasketsV1Response, error)
- func (UnimplementedOmpBasketApiServiceServer) RemoveBasketV1(context.Context, *RemoveBasketV1Request) (*RemoveBasketV1Response, error)
- func (UnimplementedOmpBasketApiServiceServer) UpdateBasketV1(context.Context, *UpdateBasketV1Request) (*UpdateBasketV1Response, error)
- type UnsafeOmpBasketApiServiceServer
- type UpdateBasketV1Request
- func (*UpdateBasketV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBasketV1Request) GetBasket() *Basket
- func (*UpdateBasketV1Request) ProtoMessage()
- func (x *UpdateBasketV1Request) ProtoReflect() protoreflect.Message
- func (x *UpdateBasketV1Request) Reset()
- func (x *UpdateBasketV1Request) String() string
- func (m *UpdateBasketV1Request) Validate() error
- func (m *UpdateBasketV1Request) ValidateAll() error
- type UpdateBasketV1RequestMultiError
- type UpdateBasketV1RequestValidationError
- func (e UpdateBasketV1RequestValidationError) Cause() error
- func (e UpdateBasketV1RequestValidationError) Error() string
- func (e UpdateBasketV1RequestValidationError) ErrorName() string
- func (e UpdateBasketV1RequestValidationError) Field() string
- func (e UpdateBasketV1RequestValidationError) Key() bool
- func (e UpdateBasketV1RequestValidationError) Reason() string
- type UpdateBasketV1Response
- func (*UpdateBasketV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBasketV1Response) GetFound() bool
- func (*UpdateBasketV1Response) ProtoMessage()
- func (x *UpdateBasketV1Response) ProtoReflect() protoreflect.Message
- func (x *UpdateBasketV1Response) Reset()
- func (x *UpdateBasketV1Response) String() string
- func (m *UpdateBasketV1Response) Validate() error
- func (m *UpdateBasketV1Response) ValidateAll() error
- type UpdateBasketV1ResponseMultiError
- type UpdateBasketV1ResponseValidationError
- func (e UpdateBasketV1ResponseValidationError) Cause() error
- func (e UpdateBasketV1ResponseValidationError) Error() string
- func (e UpdateBasketV1ResponseValidationError) ErrorName() string
- func (e UpdateBasketV1ResponseValidationError) Field() string
- func (e UpdateBasketV1ResponseValidationError) Key() bool
- func (e UpdateBasketV1ResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_ozonmp_omp_basket_api_v1_omp_basket_api_proto protoreflect.FileDescriptor
var OmpBasketApiService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ozonmp.omp_basket_api.v1.OmpBasketApiService", HandlerType: (*OmpBasketApiServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBasketV1", Handler: _OmpBasketApiService_CreateBasketV1_Handler, }, { MethodName: "UpdateBasketV1", Handler: _OmpBasketApiService_UpdateBasketV1_Handler, }, { MethodName: "DescribeBasketV1", Handler: _OmpBasketApiService_DescribeBasketV1_Handler, }, { MethodName: "ListBasketsV1", Handler: _OmpBasketApiService_ListBasketsV1_Handler, }, { MethodName: "RemoveBasketV1", Handler: _OmpBasketApiService_RemoveBasketV1_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ozonmp/omp_basket_api/v1/omp_basket_api.proto", }
OmpBasketApiService_ServiceDesc is the grpc.ServiceDesc for OmpBasketApiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOmpBasketApiServiceHandler ¶
func RegisterOmpBasketApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterOmpBasketApiServiceHandler registers the http handlers for service OmpBasketApiService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOmpBasketApiServiceHandlerClient ¶
func RegisterOmpBasketApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OmpBasketApiServiceClient) error
RegisterOmpBasketApiServiceHandlerClient registers the http handlers for service OmpBasketApiService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OmpBasketApiServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OmpBasketApiServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OmpBasketApiServiceClient" to call the correct interceptors.
func RegisterOmpBasketApiServiceHandlerFromEndpoint ¶
func RegisterOmpBasketApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterOmpBasketApiServiceHandlerFromEndpoint is same as RegisterOmpBasketApiServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOmpBasketApiServiceHandlerServer ¶
func RegisterOmpBasketApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OmpBasketApiServiceServer) error
RegisterOmpBasketApiServiceHandlerServer registers the http handlers for service OmpBasketApiService to "mux". UnaryRPC :call OmpBasketApiServiceServer 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 RegisterOmpBasketApiServiceHandlerFromEndpoint instead.
func RegisterOmpBasketApiServiceServer ¶
func RegisterOmpBasketApiServiceServer(s grpc.ServiceRegistrar, srv OmpBasketApiServiceServer)
Types ¶
type Basket ¶
type Basket struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Product []*Product `protobuf:"bytes,3,rep,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*Basket) Descriptor
deprecated
func (*Basket) GetProduct ¶
func (*Basket) ProtoMessage ¶
func (*Basket) ProtoMessage()
func (*Basket) ProtoReflect ¶
func (x *Basket) ProtoReflect() protoreflect.Message
func (*Basket) Validate ¶
Validate checks the field values on Basket 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 (*Basket) ValidateAll ¶
ValidateAll checks the field values on Basket 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 BasketMultiError, or nil if none found.
type BasketMultiError ¶
type BasketMultiError []error
BasketMultiError is an error wrapping multiple validation errors returned by Basket.ValidateAll() if the designated constraints aren't met.
func (BasketMultiError) AllErrors ¶
func (m BasketMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BasketMultiError) Error ¶
func (m BasketMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BasketValidationError ¶
type BasketValidationError struct {
// contains filtered or unexported fields
}
BasketValidationError is the validation error returned by Basket.Validate if the designated constraints aren't met.
func (BasketValidationError) Cause ¶
func (e BasketValidationError) Cause() error
Cause function returns cause value.
func (BasketValidationError) Error ¶
func (e BasketValidationError) Error() string
Error satisfies the builtin error interface
func (BasketValidationError) ErrorName ¶
func (e BasketValidationError) ErrorName() string
ErrorName returns error name.
func (BasketValidationError) Field ¶
func (e BasketValidationError) Field() string
Field function returns field value.
func (BasketValidationError) Key ¶
func (e BasketValidationError) Key() bool
Key function returns key value.
func (BasketValidationError) Reason ¶
func (e BasketValidationError) Reason() string
Reason function returns reason value.
type CreateBasketV1Request ¶
type CreateBasketV1Request struct { Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"` // contains filtered or unexported fields }
func (*CreateBasketV1Request) Descriptor
deprecated
func (*CreateBasketV1Request) Descriptor() ([]byte, []int)
Deprecated: Use CreateBasketV1Request.ProtoReflect.Descriptor instead.
func (*CreateBasketV1Request) GetBasket ¶
func (x *CreateBasketV1Request) GetBasket() *Basket
func (*CreateBasketV1Request) ProtoMessage ¶
func (*CreateBasketV1Request) ProtoMessage()
func (*CreateBasketV1Request) ProtoReflect ¶
func (x *CreateBasketV1Request) ProtoReflect() protoreflect.Message
func (*CreateBasketV1Request) Reset ¶
func (x *CreateBasketV1Request) Reset()
func (*CreateBasketV1Request) String ¶
func (x *CreateBasketV1Request) String() string
func (*CreateBasketV1Request) Validate ¶
func (m *CreateBasketV1Request) Validate() error
Validate checks the field values on CreateBasketV1Request 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 (*CreateBasketV1Request) ValidateAll ¶
func (m *CreateBasketV1Request) ValidateAll() error
ValidateAll checks the field values on CreateBasketV1Request 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 CreateBasketV1RequestMultiError, or nil if none found.
type CreateBasketV1RequestMultiError ¶
type CreateBasketV1RequestMultiError []error
CreateBasketV1RequestMultiError is an error wrapping multiple validation errors returned by CreateBasketV1Request.ValidateAll() if the designated constraints aren't met.
func (CreateBasketV1RequestMultiError) AllErrors ¶
func (m CreateBasketV1RequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateBasketV1RequestMultiError) Error ¶
func (m CreateBasketV1RequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateBasketV1RequestValidationError ¶
type CreateBasketV1RequestValidationError struct {
// contains filtered or unexported fields
}
CreateBasketV1RequestValidationError is the validation error returned by CreateBasketV1Request.Validate if the designated constraints aren't met.
func (CreateBasketV1RequestValidationError) Cause ¶
func (e CreateBasketV1RequestValidationError) Cause() error
Cause function returns cause value.
func (CreateBasketV1RequestValidationError) Error ¶
func (e CreateBasketV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateBasketV1RequestValidationError) ErrorName ¶
func (e CreateBasketV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateBasketV1RequestValidationError) Field ¶
func (e CreateBasketV1RequestValidationError) Field() string
Field function returns field value.
func (CreateBasketV1RequestValidationError) Key ¶
func (e CreateBasketV1RequestValidationError) Key() bool
Key function returns key value.
func (CreateBasketV1RequestValidationError) Reason ¶
func (e CreateBasketV1RequestValidationError) Reason() string
Reason function returns reason value.
type CreateBasketV1Response ¶
type CreateBasketV1Response struct { BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"` // contains filtered or unexported fields }
func (*CreateBasketV1Response) Descriptor
deprecated
func (*CreateBasketV1Response) Descriptor() ([]byte, []int)
Deprecated: Use CreateBasketV1Response.ProtoReflect.Descriptor instead.
func (*CreateBasketV1Response) GetBasketId ¶
func (x *CreateBasketV1Response) GetBasketId() uint64
func (*CreateBasketV1Response) ProtoMessage ¶
func (*CreateBasketV1Response) ProtoMessage()
func (*CreateBasketV1Response) ProtoReflect ¶
func (x *CreateBasketV1Response) ProtoReflect() protoreflect.Message
func (*CreateBasketV1Response) Reset ¶
func (x *CreateBasketV1Response) Reset()
func (*CreateBasketV1Response) String ¶
func (x *CreateBasketV1Response) String() string
func (*CreateBasketV1Response) Validate ¶
func (m *CreateBasketV1Response) Validate() error
Validate checks the field values on CreateBasketV1Response 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 (*CreateBasketV1Response) ValidateAll ¶
func (m *CreateBasketV1Response) ValidateAll() error
ValidateAll checks the field values on CreateBasketV1Response 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 CreateBasketV1ResponseMultiError, or nil if none found.
type CreateBasketV1ResponseMultiError ¶
type CreateBasketV1ResponseMultiError []error
CreateBasketV1ResponseMultiError is an error wrapping multiple validation errors returned by CreateBasketV1Response.ValidateAll() if the designated constraints aren't met.
func (CreateBasketV1ResponseMultiError) AllErrors ¶
func (m CreateBasketV1ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateBasketV1ResponseMultiError) Error ¶
func (m CreateBasketV1ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateBasketV1ResponseValidationError ¶
type CreateBasketV1ResponseValidationError struct {
// contains filtered or unexported fields
}
CreateBasketV1ResponseValidationError is the validation error returned by CreateBasketV1Response.Validate if the designated constraints aren't met.
func (CreateBasketV1ResponseValidationError) Cause ¶
func (e CreateBasketV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateBasketV1ResponseValidationError) Error ¶
func (e CreateBasketV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateBasketV1ResponseValidationError) ErrorName ¶
func (e CreateBasketV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateBasketV1ResponseValidationError) Field ¶
func (e CreateBasketV1ResponseValidationError) Field() string
Field function returns field value.
func (CreateBasketV1ResponseValidationError) Key ¶
func (e CreateBasketV1ResponseValidationError) Key() bool
Key function returns key value.
func (CreateBasketV1ResponseValidationError) Reason ¶
func (e CreateBasketV1ResponseValidationError) Reason() string
Reason function returns reason value.
type DescribeBasketV1Request ¶
type DescribeBasketV1Request struct { BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeBasketV1Request) Descriptor
deprecated
func (*DescribeBasketV1Request) Descriptor() ([]byte, []int)
Deprecated: Use DescribeBasketV1Request.ProtoReflect.Descriptor instead.
func (*DescribeBasketV1Request) GetBasketId ¶
func (x *DescribeBasketV1Request) GetBasketId() uint64
func (*DescribeBasketV1Request) ProtoMessage ¶
func (*DescribeBasketV1Request) ProtoMessage()
func (*DescribeBasketV1Request) ProtoReflect ¶
func (x *DescribeBasketV1Request) ProtoReflect() protoreflect.Message
func (*DescribeBasketV1Request) Reset ¶
func (x *DescribeBasketV1Request) Reset()
func (*DescribeBasketV1Request) String ¶
func (x *DescribeBasketV1Request) String() string
func (*DescribeBasketV1Request) Validate ¶
func (m *DescribeBasketV1Request) Validate() error
Validate checks the field values on DescribeBasketV1Request 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 (*DescribeBasketV1Request) ValidateAll ¶
func (m *DescribeBasketV1Request) ValidateAll() error
ValidateAll checks the field values on DescribeBasketV1Request 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 DescribeBasketV1RequestMultiError, or nil if none found.
type DescribeBasketV1RequestMultiError ¶
type DescribeBasketV1RequestMultiError []error
DescribeBasketV1RequestMultiError is an error wrapping multiple validation errors returned by DescribeBasketV1Request.ValidateAll() if the designated constraints aren't met.
func (DescribeBasketV1RequestMultiError) AllErrors ¶
func (m DescribeBasketV1RequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DescribeBasketV1RequestMultiError) Error ¶
func (m DescribeBasketV1RequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DescribeBasketV1RequestValidationError ¶
type DescribeBasketV1RequestValidationError struct {
// contains filtered or unexported fields
}
DescribeBasketV1RequestValidationError is the validation error returned by DescribeBasketV1Request.Validate if the designated constraints aren't met.
func (DescribeBasketV1RequestValidationError) Cause ¶
func (e DescribeBasketV1RequestValidationError) Cause() error
Cause function returns cause value.
func (DescribeBasketV1RequestValidationError) Error ¶
func (e DescribeBasketV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeBasketV1RequestValidationError) ErrorName ¶
func (e DescribeBasketV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeBasketV1RequestValidationError) Field ¶
func (e DescribeBasketV1RequestValidationError) Field() string
Field function returns field value.
func (DescribeBasketV1RequestValidationError) Key ¶
func (e DescribeBasketV1RequestValidationError) Key() bool
Key function returns key value.
func (DescribeBasketV1RequestValidationError) Reason ¶
func (e DescribeBasketV1RequestValidationError) Reason() string
Reason function returns reason value.
type DescribeBasketV1Response ¶
type DescribeBasketV1Response struct { Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"` // contains filtered or unexported fields }
func (*DescribeBasketV1Response) Descriptor
deprecated
func (*DescribeBasketV1Response) Descriptor() ([]byte, []int)
Deprecated: Use DescribeBasketV1Response.ProtoReflect.Descriptor instead.
func (*DescribeBasketV1Response) GetBasket ¶
func (x *DescribeBasketV1Response) GetBasket() *Basket
func (*DescribeBasketV1Response) ProtoMessage ¶
func (*DescribeBasketV1Response) ProtoMessage()
func (*DescribeBasketV1Response) ProtoReflect ¶
func (x *DescribeBasketV1Response) ProtoReflect() protoreflect.Message
func (*DescribeBasketV1Response) Reset ¶
func (x *DescribeBasketV1Response) Reset()
func (*DescribeBasketV1Response) String ¶
func (x *DescribeBasketV1Response) String() string
func (*DescribeBasketV1Response) Validate ¶
func (m *DescribeBasketV1Response) Validate() error
Validate checks the field values on DescribeBasketV1Response 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 (*DescribeBasketV1Response) ValidateAll ¶
func (m *DescribeBasketV1Response) ValidateAll() error
ValidateAll checks the field values on DescribeBasketV1Response 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 DescribeBasketV1ResponseMultiError, or nil if none found.
type DescribeBasketV1ResponseMultiError ¶
type DescribeBasketV1ResponseMultiError []error
DescribeBasketV1ResponseMultiError is an error wrapping multiple validation errors returned by DescribeBasketV1Response.ValidateAll() if the designated constraints aren't met.
func (DescribeBasketV1ResponseMultiError) AllErrors ¶
func (m DescribeBasketV1ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DescribeBasketV1ResponseMultiError) Error ¶
func (m DescribeBasketV1ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DescribeBasketV1ResponseValidationError ¶
type DescribeBasketV1ResponseValidationError struct {
// contains filtered or unexported fields
}
DescribeBasketV1ResponseValidationError is the validation error returned by DescribeBasketV1Response.Validate if the designated constraints aren't met.
func (DescribeBasketV1ResponseValidationError) Cause ¶
func (e DescribeBasketV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (DescribeBasketV1ResponseValidationError) Error ¶
func (e DescribeBasketV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeBasketV1ResponseValidationError) ErrorName ¶
func (e DescribeBasketV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeBasketV1ResponseValidationError) Field ¶
func (e DescribeBasketV1ResponseValidationError) Field() string
Field function returns field value.
func (DescribeBasketV1ResponseValidationError) Key ¶
func (e DescribeBasketV1ResponseValidationError) Key() bool
Key function returns key value.
func (DescribeBasketV1ResponseValidationError) Reason ¶
func (e DescribeBasketV1ResponseValidationError) Reason() string
Reason function returns reason value.
type ListBasketsV1Request ¶
type ListBasketsV1Request struct { Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListBasketsV1Request) Descriptor
deprecated
func (*ListBasketsV1Request) Descriptor() ([]byte, []int)
Deprecated: Use ListBasketsV1Request.ProtoReflect.Descriptor instead.
func (*ListBasketsV1Request) GetLimit ¶
func (x *ListBasketsV1Request) GetLimit() uint64
func (*ListBasketsV1Request) GetOffset ¶
func (x *ListBasketsV1Request) GetOffset() uint64
func (*ListBasketsV1Request) ProtoMessage ¶
func (*ListBasketsV1Request) ProtoMessage()
func (*ListBasketsV1Request) ProtoReflect ¶
func (x *ListBasketsV1Request) ProtoReflect() protoreflect.Message
func (*ListBasketsV1Request) Reset ¶
func (x *ListBasketsV1Request) Reset()
func (*ListBasketsV1Request) String ¶
func (x *ListBasketsV1Request) String() string
func (*ListBasketsV1Request) Validate ¶
func (m *ListBasketsV1Request) Validate() error
Validate checks the field values on ListBasketsV1Request 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 (*ListBasketsV1Request) ValidateAll ¶
func (m *ListBasketsV1Request) ValidateAll() error
ValidateAll checks the field values on ListBasketsV1Request 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 ListBasketsV1RequestMultiError, or nil if none found.
type ListBasketsV1RequestMultiError ¶
type ListBasketsV1RequestMultiError []error
ListBasketsV1RequestMultiError is an error wrapping multiple validation errors returned by ListBasketsV1Request.ValidateAll() if the designated constraints aren't met.
func (ListBasketsV1RequestMultiError) AllErrors ¶
func (m ListBasketsV1RequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListBasketsV1RequestMultiError) Error ¶
func (m ListBasketsV1RequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListBasketsV1RequestValidationError ¶
type ListBasketsV1RequestValidationError struct {
// contains filtered or unexported fields
}
ListBasketsV1RequestValidationError is the validation error returned by ListBasketsV1Request.Validate if the designated constraints aren't met.
func (ListBasketsV1RequestValidationError) Cause ¶
func (e ListBasketsV1RequestValidationError) Cause() error
Cause function returns cause value.
func (ListBasketsV1RequestValidationError) Error ¶
func (e ListBasketsV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListBasketsV1RequestValidationError) ErrorName ¶
func (e ListBasketsV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListBasketsV1RequestValidationError) Field ¶
func (e ListBasketsV1RequestValidationError) Field() string
Field function returns field value.
func (ListBasketsV1RequestValidationError) Key ¶
func (e ListBasketsV1RequestValidationError) Key() bool
Key function returns key value.
func (ListBasketsV1RequestValidationError) Reason ¶
func (e ListBasketsV1RequestValidationError) Reason() string
Reason function returns reason value.
type ListBasketsV1Response ¶
type ListBasketsV1Response struct { Baskets []*Basket `protobuf:"bytes,1,rep,name=baskets,proto3" json:"baskets,omitempty"` // contains filtered or unexported fields }
func (*ListBasketsV1Response) Descriptor
deprecated
func (*ListBasketsV1Response) Descriptor() ([]byte, []int)
Deprecated: Use ListBasketsV1Response.ProtoReflect.Descriptor instead.
func (*ListBasketsV1Response) GetBaskets ¶
func (x *ListBasketsV1Response) GetBaskets() []*Basket
func (*ListBasketsV1Response) ProtoMessage ¶
func (*ListBasketsV1Response) ProtoMessage()
func (*ListBasketsV1Response) ProtoReflect ¶
func (x *ListBasketsV1Response) ProtoReflect() protoreflect.Message
func (*ListBasketsV1Response) Reset ¶
func (x *ListBasketsV1Response) Reset()
func (*ListBasketsV1Response) String ¶
func (x *ListBasketsV1Response) String() string
func (*ListBasketsV1Response) Validate ¶
func (m *ListBasketsV1Response) Validate() error
Validate checks the field values on ListBasketsV1Response 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 (*ListBasketsV1Response) ValidateAll ¶
func (m *ListBasketsV1Response) ValidateAll() error
ValidateAll checks the field values on ListBasketsV1Response 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 ListBasketsV1ResponseMultiError, or nil if none found.
type ListBasketsV1ResponseMultiError ¶
type ListBasketsV1ResponseMultiError []error
ListBasketsV1ResponseMultiError is an error wrapping multiple validation errors returned by ListBasketsV1Response.ValidateAll() if the designated constraints aren't met.
func (ListBasketsV1ResponseMultiError) AllErrors ¶
func (m ListBasketsV1ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListBasketsV1ResponseMultiError) Error ¶
func (m ListBasketsV1ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListBasketsV1ResponseValidationError ¶
type ListBasketsV1ResponseValidationError struct {
// contains filtered or unexported fields
}
ListBasketsV1ResponseValidationError is the validation error returned by ListBasketsV1Response.Validate if the designated constraints aren't met.
func (ListBasketsV1ResponseValidationError) Cause ¶
func (e ListBasketsV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (ListBasketsV1ResponseValidationError) Error ¶
func (e ListBasketsV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListBasketsV1ResponseValidationError) ErrorName ¶
func (e ListBasketsV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListBasketsV1ResponseValidationError) Field ¶
func (e ListBasketsV1ResponseValidationError) Field() string
Field function returns field value.
func (ListBasketsV1ResponseValidationError) Key ¶
func (e ListBasketsV1ResponseValidationError) Key() bool
Key function returns key value.
func (ListBasketsV1ResponseValidationError) Reason ¶
func (e ListBasketsV1ResponseValidationError) Reason() string
Reason function returns reason value.
type OmpBasketApiServiceClient ¶
type OmpBasketApiServiceClient interface { // Creates a new basket CreateBasketV1(ctx context.Context, in *CreateBasketV1Request, opts ...grpc.CallOption) (*CreateBasketV1Response, error) // Updates a basket UpdateBasketV1(ctx context.Context, in *UpdateBasketV1Request, opts ...grpc.CallOption) (*UpdateBasketV1Response, error) // Describes a basket by basket id DescribeBasketV1(ctx context.Context, in *DescribeBasketV1Request, opts ...grpc.CallOption) (*DescribeBasketV1Response, error) // Lists baskets ListBasketsV1(ctx context.Context, in *ListBasketsV1Request, opts ...grpc.CallOption) (*ListBasketsV1Response, error) // Removes a basket by basket id RemoveBasketV1(ctx context.Context, in *RemoveBasketV1Request, opts ...grpc.CallOption) (*RemoveBasketV1Response, error) }
OmpBasketApiServiceClient is the client API for OmpBasketApiService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOmpBasketApiServiceClient ¶
func NewOmpBasketApiServiceClient(cc grpc.ClientConnInterface) OmpBasketApiServiceClient
type OmpBasketApiServiceServer ¶
type OmpBasketApiServiceServer interface { // Creates a new basket CreateBasketV1(context.Context, *CreateBasketV1Request) (*CreateBasketV1Response, error) // Updates a basket UpdateBasketV1(context.Context, *UpdateBasketV1Request) (*UpdateBasketV1Response, error) // Describes a basket by basket id DescribeBasketV1(context.Context, *DescribeBasketV1Request) (*DescribeBasketV1Response, error) // Lists baskets ListBasketsV1(context.Context, *ListBasketsV1Request) (*ListBasketsV1Response, error) // Removes a basket by basket id RemoveBasketV1(context.Context, *RemoveBasketV1Request) (*RemoveBasketV1Response, error) // contains filtered or unexported methods }
OmpBasketApiServiceServer is the server API for OmpBasketApiService service. All implementations must embed UnimplementedOmpBasketApiServiceServer for forward compatibility
type Product ¶
type Product struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
func (*Product) Validate ¶
Validate checks the field values on Product 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 (*Product) ValidateAll ¶
ValidateAll checks the field values on Product 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 ProductMultiError, or nil if none found.
type ProductMultiError ¶
type ProductMultiError []error
ProductMultiError is an error wrapping multiple validation errors returned by Product.ValidateAll() if the designated constraints aren't met.
func (ProductMultiError) AllErrors ¶
func (m ProductMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProductMultiError) Error ¶
func (m ProductMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProductValidationError ¶
type ProductValidationError struct {
// contains filtered or unexported fields
}
ProductValidationError is the validation error returned by Product.Validate if the designated constraints aren't met.
func (ProductValidationError) Cause ¶
func (e ProductValidationError) Cause() error
Cause function returns cause value.
func (ProductValidationError) Error ¶
func (e ProductValidationError) Error() string
Error satisfies the builtin error interface
func (ProductValidationError) ErrorName ¶
func (e ProductValidationError) ErrorName() string
ErrorName returns error name.
func (ProductValidationError) Field ¶
func (e ProductValidationError) Field() string
Field function returns field value.
func (ProductValidationError) Key ¶
func (e ProductValidationError) Key() bool
Key function returns key value.
func (ProductValidationError) Reason ¶
func (e ProductValidationError) Reason() string
Reason function returns reason value.
type RemoveBasketV1Request ¶
type RemoveBasketV1Request struct { BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveBasketV1Request) Descriptor
deprecated
func (*RemoveBasketV1Request) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBasketV1Request.ProtoReflect.Descriptor instead.
func (*RemoveBasketV1Request) GetBasketId ¶
func (x *RemoveBasketV1Request) GetBasketId() uint64
func (*RemoveBasketV1Request) ProtoMessage ¶
func (*RemoveBasketV1Request) ProtoMessage()
func (*RemoveBasketV1Request) ProtoReflect ¶
func (x *RemoveBasketV1Request) ProtoReflect() protoreflect.Message
func (*RemoveBasketV1Request) Reset ¶
func (x *RemoveBasketV1Request) Reset()
func (*RemoveBasketV1Request) String ¶
func (x *RemoveBasketV1Request) String() string
func (*RemoveBasketV1Request) Validate ¶
func (m *RemoveBasketV1Request) Validate() error
Validate checks the field values on RemoveBasketV1Request 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 (*RemoveBasketV1Request) ValidateAll ¶
func (m *RemoveBasketV1Request) ValidateAll() error
ValidateAll checks the field values on RemoveBasketV1Request 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 RemoveBasketV1RequestMultiError, or nil if none found.
type RemoveBasketV1RequestMultiError ¶
type RemoveBasketV1RequestMultiError []error
RemoveBasketV1RequestMultiError is an error wrapping multiple validation errors returned by RemoveBasketV1Request.ValidateAll() if the designated constraints aren't met.
func (RemoveBasketV1RequestMultiError) AllErrors ¶
func (m RemoveBasketV1RequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RemoveBasketV1RequestMultiError) Error ¶
func (m RemoveBasketV1RequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RemoveBasketV1RequestValidationError ¶
type RemoveBasketV1RequestValidationError struct {
// contains filtered or unexported fields
}
RemoveBasketV1RequestValidationError is the validation error returned by RemoveBasketV1Request.Validate if the designated constraints aren't met.
func (RemoveBasketV1RequestValidationError) Cause ¶
func (e RemoveBasketV1RequestValidationError) Cause() error
Cause function returns cause value.
func (RemoveBasketV1RequestValidationError) Error ¶
func (e RemoveBasketV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveBasketV1RequestValidationError) ErrorName ¶
func (e RemoveBasketV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveBasketV1RequestValidationError) Field ¶
func (e RemoveBasketV1RequestValidationError) Field() string
Field function returns field value.
func (RemoveBasketV1RequestValidationError) Key ¶
func (e RemoveBasketV1RequestValidationError) Key() bool
Key function returns key value.
func (RemoveBasketV1RequestValidationError) Reason ¶
func (e RemoveBasketV1RequestValidationError) Reason() string
Reason function returns reason value.
type RemoveBasketV1Response ¶
type RemoveBasketV1Response struct { Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"` // contains filtered or unexported fields }
func (*RemoveBasketV1Response) Descriptor
deprecated
func (*RemoveBasketV1Response) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBasketV1Response.ProtoReflect.Descriptor instead.
func (*RemoveBasketV1Response) GetFound ¶
func (x *RemoveBasketV1Response) GetFound() bool
func (*RemoveBasketV1Response) ProtoMessage ¶
func (*RemoveBasketV1Response) ProtoMessage()
func (*RemoveBasketV1Response) ProtoReflect ¶
func (x *RemoveBasketV1Response) ProtoReflect() protoreflect.Message
func (*RemoveBasketV1Response) Reset ¶
func (x *RemoveBasketV1Response) Reset()
func (*RemoveBasketV1Response) String ¶
func (x *RemoveBasketV1Response) String() string
func (*RemoveBasketV1Response) Validate ¶
func (m *RemoveBasketV1Response) Validate() error
Validate checks the field values on RemoveBasketV1Response 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 (*RemoveBasketV1Response) ValidateAll ¶
func (m *RemoveBasketV1Response) ValidateAll() error
ValidateAll checks the field values on RemoveBasketV1Response 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 RemoveBasketV1ResponseMultiError, or nil if none found.
type RemoveBasketV1ResponseMultiError ¶
type RemoveBasketV1ResponseMultiError []error
RemoveBasketV1ResponseMultiError is an error wrapping multiple validation errors returned by RemoveBasketV1Response.ValidateAll() if the designated constraints aren't met.
func (RemoveBasketV1ResponseMultiError) AllErrors ¶
func (m RemoveBasketV1ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RemoveBasketV1ResponseMultiError) Error ¶
func (m RemoveBasketV1ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RemoveBasketV1ResponseValidationError ¶
type RemoveBasketV1ResponseValidationError struct {
// contains filtered or unexported fields
}
RemoveBasketV1ResponseValidationError is the validation error returned by RemoveBasketV1Response.Validate if the designated constraints aren't met.
func (RemoveBasketV1ResponseValidationError) Cause ¶
func (e RemoveBasketV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (RemoveBasketV1ResponseValidationError) Error ¶
func (e RemoveBasketV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveBasketV1ResponseValidationError) ErrorName ¶
func (e RemoveBasketV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveBasketV1ResponseValidationError) Field ¶
func (e RemoveBasketV1ResponseValidationError) Field() string
Field function returns field value.
func (RemoveBasketV1ResponseValidationError) Key ¶
func (e RemoveBasketV1ResponseValidationError) Key() bool
Key function returns key value.
func (RemoveBasketV1ResponseValidationError) Reason ¶
func (e RemoveBasketV1ResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedOmpBasketApiServiceServer ¶
type UnimplementedOmpBasketApiServiceServer struct { }
UnimplementedOmpBasketApiServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOmpBasketApiServiceServer) CreateBasketV1 ¶
func (UnimplementedOmpBasketApiServiceServer) CreateBasketV1(context.Context, *CreateBasketV1Request) (*CreateBasketV1Response, error)
func (UnimplementedOmpBasketApiServiceServer) DescribeBasketV1 ¶
func (UnimplementedOmpBasketApiServiceServer) DescribeBasketV1(context.Context, *DescribeBasketV1Request) (*DescribeBasketV1Response, error)
func (UnimplementedOmpBasketApiServiceServer) ListBasketsV1 ¶
func (UnimplementedOmpBasketApiServiceServer) ListBasketsV1(context.Context, *ListBasketsV1Request) (*ListBasketsV1Response, error)
func (UnimplementedOmpBasketApiServiceServer) RemoveBasketV1 ¶
func (UnimplementedOmpBasketApiServiceServer) RemoveBasketV1(context.Context, *RemoveBasketV1Request) (*RemoveBasketV1Response, error)
func (UnimplementedOmpBasketApiServiceServer) UpdateBasketV1 ¶
func (UnimplementedOmpBasketApiServiceServer) UpdateBasketV1(context.Context, *UpdateBasketV1Request) (*UpdateBasketV1Response, error)
type UnsafeOmpBasketApiServiceServer ¶
type UnsafeOmpBasketApiServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOmpBasketApiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OmpBasketApiServiceServer will result in compilation errors.
type UpdateBasketV1Request ¶
type UpdateBasketV1Request struct { Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"` // contains filtered or unexported fields }
func (*UpdateBasketV1Request) Descriptor
deprecated
func (*UpdateBasketV1Request) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBasketV1Request.ProtoReflect.Descriptor instead.
func (*UpdateBasketV1Request) GetBasket ¶
func (x *UpdateBasketV1Request) GetBasket() *Basket
func (*UpdateBasketV1Request) ProtoMessage ¶
func (*UpdateBasketV1Request) ProtoMessage()
func (*UpdateBasketV1Request) ProtoReflect ¶
func (x *UpdateBasketV1Request) ProtoReflect() protoreflect.Message
func (*UpdateBasketV1Request) Reset ¶
func (x *UpdateBasketV1Request) Reset()
func (*UpdateBasketV1Request) String ¶
func (x *UpdateBasketV1Request) String() string
func (*UpdateBasketV1Request) Validate ¶
func (m *UpdateBasketV1Request) Validate() error
Validate checks the field values on UpdateBasketV1Request 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 (*UpdateBasketV1Request) ValidateAll ¶
func (m *UpdateBasketV1Request) ValidateAll() error
ValidateAll checks the field values on UpdateBasketV1Request 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 UpdateBasketV1RequestMultiError, or nil if none found.
type UpdateBasketV1RequestMultiError ¶
type UpdateBasketV1RequestMultiError []error
UpdateBasketV1RequestMultiError is an error wrapping multiple validation errors returned by UpdateBasketV1Request.ValidateAll() if the designated constraints aren't met.
func (UpdateBasketV1RequestMultiError) AllErrors ¶
func (m UpdateBasketV1RequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateBasketV1RequestMultiError) Error ¶
func (m UpdateBasketV1RequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateBasketV1RequestValidationError ¶
type UpdateBasketV1RequestValidationError struct {
// contains filtered or unexported fields
}
UpdateBasketV1RequestValidationError is the validation error returned by UpdateBasketV1Request.Validate if the designated constraints aren't met.
func (UpdateBasketV1RequestValidationError) Cause ¶
func (e UpdateBasketV1RequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateBasketV1RequestValidationError) Error ¶
func (e UpdateBasketV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBasketV1RequestValidationError) ErrorName ¶
func (e UpdateBasketV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBasketV1RequestValidationError) Field ¶
func (e UpdateBasketV1RequestValidationError) Field() string
Field function returns field value.
func (UpdateBasketV1RequestValidationError) Key ¶
func (e UpdateBasketV1RequestValidationError) Key() bool
Key function returns key value.
func (UpdateBasketV1RequestValidationError) Reason ¶
func (e UpdateBasketV1RequestValidationError) Reason() string
Reason function returns reason value.
type UpdateBasketV1Response ¶
type UpdateBasketV1Response struct { Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"` // contains filtered or unexported fields }
func (*UpdateBasketV1Response) Descriptor
deprecated
func (*UpdateBasketV1Response) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBasketV1Response.ProtoReflect.Descriptor instead.
func (*UpdateBasketV1Response) GetFound ¶
func (x *UpdateBasketV1Response) GetFound() bool
func (*UpdateBasketV1Response) ProtoMessage ¶
func (*UpdateBasketV1Response) ProtoMessage()
func (*UpdateBasketV1Response) ProtoReflect ¶
func (x *UpdateBasketV1Response) ProtoReflect() protoreflect.Message
func (*UpdateBasketV1Response) Reset ¶
func (x *UpdateBasketV1Response) Reset()
func (*UpdateBasketV1Response) String ¶
func (x *UpdateBasketV1Response) String() string
func (*UpdateBasketV1Response) Validate ¶
func (m *UpdateBasketV1Response) Validate() error
Validate checks the field values on UpdateBasketV1Response 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 (*UpdateBasketV1Response) ValidateAll ¶
func (m *UpdateBasketV1Response) ValidateAll() error
ValidateAll checks the field values on UpdateBasketV1Response 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 UpdateBasketV1ResponseMultiError, or nil if none found.
type UpdateBasketV1ResponseMultiError ¶
type UpdateBasketV1ResponseMultiError []error
UpdateBasketV1ResponseMultiError is an error wrapping multiple validation errors returned by UpdateBasketV1Response.ValidateAll() if the designated constraints aren't met.
func (UpdateBasketV1ResponseMultiError) AllErrors ¶
func (m UpdateBasketV1ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateBasketV1ResponseMultiError) Error ¶
func (m UpdateBasketV1ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateBasketV1ResponseValidationError ¶
type UpdateBasketV1ResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateBasketV1ResponseValidationError is the validation error returned by UpdateBasketV1Response.Validate if the designated constraints aren't met.
func (UpdateBasketV1ResponseValidationError) Cause ¶
func (e UpdateBasketV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateBasketV1ResponseValidationError) Error ¶
func (e UpdateBasketV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBasketV1ResponseValidationError) ErrorName ¶
func (e UpdateBasketV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBasketV1ResponseValidationError) Field ¶
func (e UpdateBasketV1ResponseValidationError) Field() string
Field function returns field value.
func (UpdateBasketV1ResponseValidationError) Key ¶
func (e UpdateBasketV1ResponseValidationError) Key() bool
Key function returns key value.
func (UpdateBasketV1ResponseValidationError) Reason ¶
func (e UpdateBasketV1ResponseValidationError) Reason() string
Reason function returns reason value.