Documentation ¶
Overview ¶
Package logistic_package_api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLogisticPackageApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLogisticPackageApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLogisticPackageApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLogisticPackageApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLogisticPackageApiServiceServer(s grpc.ServiceRegistrar, srv LogisticPackageApiServiceServer)
- type CreatePackageV1Request
- func (*CreatePackageV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePackageV1Request) GetMaterial() string
- func (x *CreatePackageV1Request) GetMaximumVolume() float32
- func (x *CreatePackageV1Request) GetReusable() bool
- func (x *CreatePackageV1Request) GetTitle() string
- func (*CreatePackageV1Request) ProtoMessage()
- func (x *CreatePackageV1Request) ProtoReflect() protoreflect.Message
- func (x *CreatePackageV1Request) Reset()
- func (x *CreatePackageV1Request) String() string
- func (m *CreatePackageV1Request) Validate() error
- type CreatePackageV1RequestValidationError
- func (e CreatePackageV1RequestValidationError) Cause() error
- func (e CreatePackageV1RequestValidationError) Error() string
- func (e CreatePackageV1RequestValidationError) ErrorName() string
- func (e CreatePackageV1RequestValidationError) Field() string
- func (e CreatePackageV1RequestValidationError) Key() bool
- func (e CreatePackageV1RequestValidationError) Reason() string
- type CreatePackageV1Response
- func (*CreatePackageV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePackageV1Response) GetID() uint64
- func (*CreatePackageV1Response) ProtoMessage()
- func (x *CreatePackageV1Response) ProtoReflect() protoreflect.Message
- func (x *CreatePackageV1Response) Reset()
- func (x *CreatePackageV1Response) String() string
- func (m *CreatePackageV1Response) Validate() error
- type CreatePackageV1ResponseValidationError
- func (e CreatePackageV1ResponseValidationError) Cause() error
- func (e CreatePackageV1ResponseValidationError) Error() string
- func (e CreatePackageV1ResponseValidationError) ErrorName() string
- func (e CreatePackageV1ResponseValidationError) Field() string
- func (e CreatePackageV1ResponseValidationError) Key() bool
- func (e CreatePackageV1ResponseValidationError) Reason() string
- type DescribePackageV1Request
- func (*DescribePackageV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *DescribePackageV1Request) GetPackageID() uint64
- func (*DescribePackageV1Request) ProtoMessage()
- func (x *DescribePackageV1Request) ProtoReflect() protoreflect.Message
- func (x *DescribePackageV1Request) Reset()
- func (x *DescribePackageV1Request) String() string
- func (m *DescribePackageV1Request) Validate() error
- type DescribePackageV1RequestValidationError
- func (e DescribePackageV1RequestValidationError) Cause() error
- func (e DescribePackageV1RequestValidationError) Error() string
- func (e DescribePackageV1RequestValidationError) ErrorName() string
- func (e DescribePackageV1RequestValidationError) Field() string
- func (e DescribePackageV1RequestValidationError) Key() bool
- func (e DescribePackageV1RequestValidationError) Reason() string
- type DescribePackageV1Response
- func (*DescribePackageV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *DescribePackageV1Response) GetValue() *Package
- func (*DescribePackageV1Response) ProtoMessage()
- func (x *DescribePackageV1Response) ProtoReflect() protoreflect.Message
- func (x *DescribePackageV1Response) Reset()
- func (x *DescribePackageV1Response) String() string
- func (m *DescribePackageV1Response) Validate() error
- type DescribePackageV1ResponseValidationError
- func (e DescribePackageV1ResponseValidationError) Cause() error
- func (e DescribePackageV1ResponseValidationError) Error() string
- func (e DescribePackageV1ResponseValidationError) ErrorName() string
- func (e DescribePackageV1ResponseValidationError) Field() string
- func (e DescribePackageV1ResponseValidationError) Key() bool
- func (e DescribePackageV1ResponseValidationError) Reason() string
- type ListPackagesV1Request
- func (*ListPackagesV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *ListPackagesV1Request) GetLimit() uint64
- func (x *ListPackagesV1Request) GetOffset() uint64
- func (*ListPackagesV1Request) ProtoMessage()
- func (x *ListPackagesV1Request) ProtoReflect() protoreflect.Message
- func (x *ListPackagesV1Request) Reset()
- func (x *ListPackagesV1Request) String() string
- func (m *ListPackagesV1Request) Validate() error
- type ListPackagesV1RequestValidationError
- func (e ListPackagesV1RequestValidationError) Cause() error
- func (e ListPackagesV1RequestValidationError) Error() string
- func (e ListPackagesV1RequestValidationError) ErrorName() string
- func (e ListPackagesV1RequestValidationError) Field() string
- func (e ListPackagesV1RequestValidationError) Key() bool
- func (e ListPackagesV1RequestValidationError) Reason() string
- type ListPackagesV1Response
- func (*ListPackagesV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *ListPackagesV1Response) GetPackageTitle() []string
- func (x *ListPackagesV1Response) GetPackages() []*Package
- func (*ListPackagesV1Response) ProtoMessage()
- func (x *ListPackagesV1Response) ProtoReflect() protoreflect.Message
- func (x *ListPackagesV1Response) Reset()
- func (x *ListPackagesV1Response) String() string
- func (m *ListPackagesV1Response) Validate() error
- type ListPackagesV1ResponseValidationError
- func (e ListPackagesV1ResponseValidationError) Cause() error
- func (e ListPackagesV1ResponseValidationError) Error() string
- func (e ListPackagesV1ResponseValidationError) ErrorName() string
- func (e ListPackagesV1ResponseValidationError) Field() string
- func (e ListPackagesV1ResponseValidationError) Key() bool
- func (e ListPackagesV1ResponseValidationError) Reason() string
- type LogisticPackageApiServiceClient
- type LogisticPackageApiServiceServer
- type MaybeBool
- type MaybeBoolValidationError
- type MaybeTimestamp
- func (*MaybeTimestamp) Descriptor() ([]byte, []int)deprecated
- func (x *MaybeTimestamp) GetTime() *timestamppb.Timestamp
- func (*MaybeTimestamp) ProtoMessage()
- func (x *MaybeTimestamp) ProtoReflect() protoreflect.Message
- func (x *MaybeTimestamp) Reset()
- func (x *MaybeTimestamp) String() string
- func (m *MaybeTimestamp) Validate() error
- type MaybeTimestampValidationError
- func (e MaybeTimestampValidationError) Cause() error
- func (e MaybeTimestampValidationError) Error() string
- func (e MaybeTimestampValidationError) ErrorName() string
- func (e MaybeTimestampValidationError) Field() string
- func (e MaybeTimestampValidationError) Key() bool
- func (e MaybeTimestampValidationError) Reason() string
- type Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetCreated() *timestamppb.Timestamp
- func (x *Package) GetID() uint64
- func (x *Package) GetMaterial() string
- func (x *Package) GetMaximumVolume() float32
- func (x *Package) GetReusable() bool
- func (x *Package) GetTitle() string
- func (x *Package) GetUpdated() *MaybeTimestamp
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- func (m *Package) Validate() error
- type PackageValidationError
- type RemovePackageV1Request
- func (*RemovePackageV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePackageV1Request) GetPackageID() uint64
- func (*RemovePackageV1Request) ProtoMessage()
- func (x *RemovePackageV1Request) ProtoReflect() protoreflect.Message
- func (x *RemovePackageV1Request) Reset()
- func (x *RemovePackageV1Request) String() string
- func (m *RemovePackageV1Request) Validate() error
- type RemovePackageV1RequestValidationError
- func (e RemovePackageV1RequestValidationError) Cause() error
- func (e RemovePackageV1RequestValidationError) Error() string
- func (e RemovePackageV1RequestValidationError) ErrorName() string
- func (e RemovePackageV1RequestValidationError) Field() string
- func (e RemovePackageV1RequestValidationError) Key() bool
- func (e RemovePackageV1RequestValidationError) Reason() string
- type RemovePackageV1Response
- func (*RemovePackageV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePackageV1Response) GetSuc() bool
- func (*RemovePackageV1Response) ProtoMessage()
- func (x *RemovePackageV1Response) ProtoReflect() protoreflect.Message
- func (x *RemovePackageV1Response) Reset()
- func (x *RemovePackageV1Response) String() string
- func (m *RemovePackageV1Response) Validate() error
- type RemovePackageV1ResponseValidationError
- func (e RemovePackageV1ResponseValidationError) Cause() error
- func (e RemovePackageV1ResponseValidationError) Error() string
- func (e RemovePackageV1ResponseValidationError) ErrorName() string
- func (e RemovePackageV1ResponseValidationError) Field() string
- func (e RemovePackageV1ResponseValidationError) Key() bool
- func (e RemovePackageV1ResponseValidationError) Reason() string
- type UnimplementedLogisticPackageApiServiceServer
- func (UnimplementedLogisticPackageApiServiceServer) CreatePackageV1(context.Context, *CreatePackageV1Request) (*CreatePackageV1Response, error)
- func (UnimplementedLogisticPackageApiServiceServer) DescribePackageV1(context.Context, *DescribePackageV1Request) (*DescribePackageV1Response, error)
- func (UnimplementedLogisticPackageApiServiceServer) ListPackagesV1(context.Context, *ListPackagesV1Request) (*ListPackagesV1Response, error)
- func (UnimplementedLogisticPackageApiServiceServer) RemovePackageV1(context.Context, *RemovePackageV1Request) (*RemovePackageV1Response, error)
- func (UnimplementedLogisticPackageApiServiceServer) UpdatePackageV1(context.Context, *UpdatePackageV1Request) (*UpdatePackageV1Response, error)
- type UnsafeLogisticPackageApiServiceServer
- type UpdatePackageV1Request
- func (*UpdatePackageV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePackageV1Request) GetMaterial() string
- func (x *UpdatePackageV1Request) GetMaximumVolume() float32
- func (x *UpdatePackageV1Request) GetPackageID() uint64
- func (x *UpdatePackageV1Request) GetReusable() *MaybeBool
- func (x *UpdatePackageV1Request) GetTitle() string
- func (*UpdatePackageV1Request) ProtoMessage()
- func (x *UpdatePackageV1Request) ProtoReflect() protoreflect.Message
- func (x *UpdatePackageV1Request) Reset()
- func (x *UpdatePackageV1Request) String() string
- func (m *UpdatePackageV1Request) Validate() error
- type UpdatePackageV1RequestValidationError
- func (e UpdatePackageV1RequestValidationError) Cause() error
- func (e UpdatePackageV1RequestValidationError) Error() string
- func (e UpdatePackageV1RequestValidationError) ErrorName() string
- func (e UpdatePackageV1RequestValidationError) Field() string
- func (e UpdatePackageV1RequestValidationError) Key() bool
- func (e UpdatePackageV1RequestValidationError) Reason() string
- type UpdatePackageV1Response
- func (*UpdatePackageV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePackageV1Response) GetSuc() bool
- func (*UpdatePackageV1Response) ProtoMessage()
- func (x *UpdatePackageV1Response) ProtoReflect() protoreflect.Message
- func (x *UpdatePackageV1Response) Reset()
- func (x *UpdatePackageV1Response) String() string
- func (m *UpdatePackageV1Response) Validate() error
- type UpdatePackageV1ResponseValidationError
- func (e UpdatePackageV1ResponseValidationError) Cause() error
- func (e UpdatePackageV1ResponseValidationError) Error() string
- func (e UpdatePackageV1ResponseValidationError) ErrorName() string
- func (e UpdatePackageV1ResponseValidationError) Field() string
- func (e UpdatePackageV1ResponseValidationError) Key() bool
- func (e UpdatePackageV1ResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_hablof_logistic_package_api_v1_logistic_package_api_proto protoreflect.FileDescriptor
var LogisticPackageApiService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hablof.logistic_package_api.v1.LogisticPackageApiService", HandlerType: (*LogisticPackageApiServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreatePackageV1", Handler: _LogisticPackageApiService_CreatePackageV1_Handler, }, { MethodName: "DescribePackageV1", Handler: _LogisticPackageApiService_DescribePackageV1_Handler, }, { MethodName: "ListPackagesV1", Handler: _LogisticPackageApiService_ListPackagesV1_Handler, }, { MethodName: "RemovePackageV1", Handler: _LogisticPackageApiService_RemovePackageV1_Handler, }, { MethodName: "UpdatePackageV1", Handler: _LogisticPackageApiService_UpdatePackageV1_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hablof/logistic_package_api/v1/logistic_package_api.proto", }
LogisticPackageApiService_ServiceDesc is the grpc.ServiceDesc for LogisticPackageApiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogisticPackageApiServiceHandler ¶
func RegisterLogisticPackageApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLogisticPackageApiServiceHandler registers the http handlers for service LogisticPackageApiService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLogisticPackageApiServiceHandlerClient ¶
func RegisterLogisticPackageApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogisticPackageApiServiceClient) error
RegisterLogisticPackageApiServiceHandlerClient registers the http handlers for service LogisticPackageApiService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogisticPackageApiServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogisticPackageApiServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogisticPackageApiServiceClient" to call the correct interceptors.
func RegisterLogisticPackageApiServiceHandlerFromEndpoint ¶
func RegisterLogisticPackageApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLogisticPackageApiServiceHandlerFromEndpoint is same as RegisterLogisticPackageApiServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLogisticPackageApiServiceHandlerServer ¶
func RegisterLogisticPackageApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogisticPackageApiServiceServer) error
RegisterLogisticPackageApiServiceHandlerServer registers the http handlers for service LogisticPackageApiService to "mux". UnaryRPC :call LogisticPackageApiServiceServer 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 RegisterLogisticPackageApiServiceHandlerFromEndpoint instead.
func RegisterLogisticPackageApiServiceServer ¶
func RegisterLogisticPackageApiServiceServer(s grpc.ServiceRegistrar, srv LogisticPackageApiServiceServer)
Types ¶
type CreatePackageV1Request ¶
type CreatePackageV1Request struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` // not empty Material string `protobuf:"bytes,2,opt,name=Material,proto3" json:"Material,omitempty"` // not empty MaximumVolume float32 `protobuf:"fixed32,3,opt,name=MaximumVolume,proto3" json:"MaximumVolume,omitempty"` // not 0 Reusable bool `protobuf:"varint,4,opt,name=Reusable,proto3" json:"Reusable,omitempty"` // contains filtered or unexported fields }
func (*CreatePackageV1Request) Descriptor
deprecated
func (*CreatePackageV1Request) Descriptor() ([]byte, []int)
Deprecated: Use CreatePackageV1Request.ProtoReflect.Descriptor instead.
func (*CreatePackageV1Request) GetMaterial ¶
func (x *CreatePackageV1Request) GetMaterial() string
func (*CreatePackageV1Request) GetMaximumVolume ¶
func (x *CreatePackageV1Request) GetMaximumVolume() float32
func (*CreatePackageV1Request) GetReusable ¶
func (x *CreatePackageV1Request) GetReusable() bool
func (*CreatePackageV1Request) GetTitle ¶
func (x *CreatePackageV1Request) GetTitle() string
func (*CreatePackageV1Request) ProtoMessage ¶
func (*CreatePackageV1Request) ProtoMessage()
func (*CreatePackageV1Request) ProtoReflect ¶
func (x *CreatePackageV1Request) ProtoReflect() protoreflect.Message
func (*CreatePackageV1Request) Reset ¶
func (x *CreatePackageV1Request) Reset()
func (*CreatePackageV1Request) String ¶
func (x *CreatePackageV1Request) String() string
func (*CreatePackageV1Request) Validate ¶
func (m *CreatePackageV1Request) Validate() error
Validate checks the field values on CreatePackageV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreatePackageV1RequestValidationError ¶
type CreatePackageV1RequestValidationError struct {
// contains filtered or unexported fields
}
CreatePackageV1RequestValidationError is the validation error returned by CreatePackageV1Request.Validate if the designated constraints aren't met.
func (CreatePackageV1RequestValidationError) Cause ¶
func (e CreatePackageV1RequestValidationError) Cause() error
Cause function returns cause value.
func (CreatePackageV1RequestValidationError) Error ¶
func (e CreatePackageV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePackageV1RequestValidationError) ErrorName ¶
func (e CreatePackageV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePackageV1RequestValidationError) Field ¶
func (e CreatePackageV1RequestValidationError) Field() string
Field function returns field value.
func (CreatePackageV1RequestValidationError) Key ¶
func (e CreatePackageV1RequestValidationError) Key() bool
Key function returns key value.
func (CreatePackageV1RequestValidationError) Reason ¶
func (e CreatePackageV1RequestValidationError) Reason() string
Reason function returns reason value.
type CreatePackageV1Response ¶
type CreatePackageV1Response struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*CreatePackageV1Response) Descriptor
deprecated
func (*CreatePackageV1Response) Descriptor() ([]byte, []int)
Deprecated: Use CreatePackageV1Response.ProtoReflect.Descriptor instead.
func (*CreatePackageV1Response) GetID ¶
func (x *CreatePackageV1Response) GetID() uint64
func (*CreatePackageV1Response) ProtoMessage ¶
func (*CreatePackageV1Response) ProtoMessage()
func (*CreatePackageV1Response) ProtoReflect ¶
func (x *CreatePackageV1Response) ProtoReflect() protoreflect.Message
func (*CreatePackageV1Response) Reset ¶
func (x *CreatePackageV1Response) Reset()
func (*CreatePackageV1Response) String ¶
func (x *CreatePackageV1Response) String() string
func (*CreatePackageV1Response) Validate ¶
func (m *CreatePackageV1Response) Validate() error
Validate checks the field values on CreatePackageV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreatePackageV1ResponseValidationError ¶
type CreatePackageV1ResponseValidationError struct {
// contains filtered or unexported fields
}
CreatePackageV1ResponseValidationError is the validation error returned by CreatePackageV1Response.Validate if the designated constraints aren't met.
func (CreatePackageV1ResponseValidationError) Cause ¶
func (e CreatePackageV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (CreatePackageV1ResponseValidationError) Error ¶
func (e CreatePackageV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePackageV1ResponseValidationError) ErrorName ¶
func (e CreatePackageV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePackageV1ResponseValidationError) Field ¶
func (e CreatePackageV1ResponseValidationError) Field() string
Field function returns field value.
func (CreatePackageV1ResponseValidationError) Key ¶
func (e CreatePackageV1ResponseValidationError) Key() bool
Key function returns key value.
func (CreatePackageV1ResponseValidationError) Reason ¶
func (e CreatePackageV1ResponseValidationError) Reason() string
Reason function returns reason value.
type DescribePackageV1Request ¶
type DescribePackageV1Request struct { PackageID uint64 `protobuf:"varint,1,opt,name=PackageID,proto3" json:"PackageID,omitempty"` // contains filtered or unexported fields }
func (*DescribePackageV1Request) Descriptor
deprecated
func (*DescribePackageV1Request) Descriptor() ([]byte, []int)
Deprecated: Use DescribePackageV1Request.ProtoReflect.Descriptor instead.
func (*DescribePackageV1Request) GetPackageID ¶
func (x *DescribePackageV1Request) GetPackageID() uint64
func (*DescribePackageV1Request) ProtoMessage ¶
func (*DescribePackageV1Request) ProtoMessage()
func (*DescribePackageV1Request) ProtoReflect ¶
func (x *DescribePackageV1Request) ProtoReflect() protoreflect.Message
func (*DescribePackageV1Request) Reset ¶
func (x *DescribePackageV1Request) Reset()
func (*DescribePackageV1Request) String ¶
func (x *DescribePackageV1Request) String() string
func (*DescribePackageV1Request) Validate ¶
func (m *DescribePackageV1Request) Validate() error
Validate checks the field values on DescribePackageV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DescribePackageV1RequestValidationError ¶
type DescribePackageV1RequestValidationError struct {
// contains filtered or unexported fields
}
DescribePackageV1RequestValidationError is the validation error returned by DescribePackageV1Request.Validate if the designated constraints aren't met.
func (DescribePackageV1RequestValidationError) Cause ¶
func (e DescribePackageV1RequestValidationError) Cause() error
Cause function returns cause value.
func (DescribePackageV1RequestValidationError) Error ¶
func (e DescribePackageV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (DescribePackageV1RequestValidationError) ErrorName ¶
func (e DescribePackageV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (DescribePackageV1RequestValidationError) Field ¶
func (e DescribePackageV1RequestValidationError) Field() string
Field function returns field value.
func (DescribePackageV1RequestValidationError) Key ¶
func (e DescribePackageV1RequestValidationError) Key() bool
Key function returns key value.
func (DescribePackageV1RequestValidationError) Reason ¶
func (e DescribePackageV1RequestValidationError) Reason() string
Reason function returns reason value.
type DescribePackageV1Response ¶
type DescribePackageV1Response struct { Value *Package `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*DescribePackageV1Response) Descriptor
deprecated
func (*DescribePackageV1Response) Descriptor() ([]byte, []int)
Deprecated: Use DescribePackageV1Response.ProtoReflect.Descriptor instead.
func (*DescribePackageV1Response) GetValue ¶
func (x *DescribePackageV1Response) GetValue() *Package
func (*DescribePackageV1Response) ProtoMessage ¶
func (*DescribePackageV1Response) ProtoMessage()
func (*DescribePackageV1Response) ProtoReflect ¶
func (x *DescribePackageV1Response) ProtoReflect() protoreflect.Message
func (*DescribePackageV1Response) Reset ¶
func (x *DescribePackageV1Response) Reset()
func (*DescribePackageV1Response) String ¶
func (x *DescribePackageV1Response) String() string
func (*DescribePackageV1Response) Validate ¶
func (m *DescribePackageV1Response) Validate() error
Validate checks the field values on DescribePackageV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DescribePackageV1ResponseValidationError ¶
type DescribePackageV1ResponseValidationError struct {
// contains filtered or unexported fields
}
DescribePackageV1ResponseValidationError is the validation error returned by DescribePackageV1Response.Validate if the designated constraints aren't met.
func (DescribePackageV1ResponseValidationError) Cause ¶
func (e DescribePackageV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (DescribePackageV1ResponseValidationError) Error ¶
func (e DescribePackageV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DescribePackageV1ResponseValidationError) ErrorName ¶
func (e DescribePackageV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DescribePackageV1ResponseValidationError) Field ¶
func (e DescribePackageV1ResponseValidationError) Field() string
Field function returns field value.
func (DescribePackageV1ResponseValidationError) Key ¶
func (e DescribePackageV1ResponseValidationError) Key() bool
Key function returns key value.
func (DescribePackageV1ResponseValidationError) Reason ¶
func (e DescribePackageV1ResponseValidationError) Reason() string
Reason function returns reason value.
type ListPackagesV1Request ¶
type ListPackagesV1Request struct { Offset uint64 `protobuf:"varint,1,opt,name=Offset,proto3" json:"Offset,omitempty"` Limit uint64 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"` // contains filtered or unexported fields }
func (*ListPackagesV1Request) Descriptor
deprecated
func (*ListPackagesV1Request) Descriptor() ([]byte, []int)
Deprecated: Use ListPackagesV1Request.ProtoReflect.Descriptor instead.
func (*ListPackagesV1Request) GetLimit ¶
func (x *ListPackagesV1Request) GetLimit() uint64
func (*ListPackagesV1Request) GetOffset ¶
func (x *ListPackagesV1Request) GetOffset() uint64
func (*ListPackagesV1Request) ProtoMessage ¶
func (*ListPackagesV1Request) ProtoMessage()
func (*ListPackagesV1Request) ProtoReflect ¶
func (x *ListPackagesV1Request) ProtoReflect() protoreflect.Message
func (*ListPackagesV1Request) Reset ¶
func (x *ListPackagesV1Request) Reset()
func (*ListPackagesV1Request) String ¶
func (x *ListPackagesV1Request) String() string
func (*ListPackagesV1Request) Validate ¶
func (m *ListPackagesV1Request) Validate() error
Validate checks the field values on ListPackagesV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListPackagesV1RequestValidationError ¶
type ListPackagesV1RequestValidationError struct {
// contains filtered or unexported fields
}
ListPackagesV1RequestValidationError is the validation error returned by ListPackagesV1Request.Validate if the designated constraints aren't met.
func (ListPackagesV1RequestValidationError) Cause ¶
func (e ListPackagesV1RequestValidationError) Cause() error
Cause function returns cause value.
func (ListPackagesV1RequestValidationError) Error ¶
func (e ListPackagesV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPackagesV1RequestValidationError) ErrorName ¶
func (e ListPackagesV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPackagesV1RequestValidationError) Field ¶
func (e ListPackagesV1RequestValidationError) Field() string
Field function returns field value.
func (ListPackagesV1RequestValidationError) Key ¶
func (e ListPackagesV1RequestValidationError) Key() bool
Key function returns key value.
func (ListPackagesV1RequestValidationError) Reason ¶
func (e ListPackagesV1RequestValidationError) Reason() string
Reason function returns reason value.
type ListPackagesV1Response ¶
type ListPackagesV1Response struct { PackageTitle []string `protobuf:"bytes,1,rep,name=PackageTitle,proto3" json:"PackageTitle,omitempty"` // well... not used Packages []*Package `protobuf:"bytes,2,rep,name=Packages,proto3" json:"Packages,omitempty"` // contains filtered or unexported fields }
func (*ListPackagesV1Response) Descriptor
deprecated
func (*ListPackagesV1Response) Descriptor() ([]byte, []int)
Deprecated: Use ListPackagesV1Response.ProtoReflect.Descriptor instead.
func (*ListPackagesV1Response) GetPackageTitle ¶
func (x *ListPackagesV1Response) GetPackageTitle() []string
func (*ListPackagesV1Response) GetPackages ¶
func (x *ListPackagesV1Response) GetPackages() []*Package
func (*ListPackagesV1Response) ProtoMessage ¶
func (*ListPackagesV1Response) ProtoMessage()
func (*ListPackagesV1Response) ProtoReflect ¶
func (x *ListPackagesV1Response) ProtoReflect() protoreflect.Message
func (*ListPackagesV1Response) Reset ¶
func (x *ListPackagesV1Response) Reset()
func (*ListPackagesV1Response) String ¶
func (x *ListPackagesV1Response) String() string
func (*ListPackagesV1Response) Validate ¶
func (m *ListPackagesV1Response) Validate() error
Validate checks the field values on ListPackagesV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListPackagesV1ResponseValidationError ¶
type ListPackagesV1ResponseValidationError struct {
// contains filtered or unexported fields
}
ListPackagesV1ResponseValidationError is the validation error returned by ListPackagesV1Response.Validate if the designated constraints aren't met.
func (ListPackagesV1ResponseValidationError) Cause ¶
func (e ListPackagesV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (ListPackagesV1ResponseValidationError) Error ¶
func (e ListPackagesV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListPackagesV1ResponseValidationError) ErrorName ¶
func (e ListPackagesV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListPackagesV1ResponseValidationError) Field ¶
func (e ListPackagesV1ResponseValidationError) Field() string
Field function returns field value.
func (ListPackagesV1ResponseValidationError) Key ¶
func (e ListPackagesV1ResponseValidationError) Key() bool
Key function returns key value.
func (ListPackagesV1ResponseValidationError) Reason ¶
func (e ListPackagesV1ResponseValidationError) Reason() string
Reason function returns reason value.
type LogisticPackageApiServiceClient ¶
type LogisticPackageApiServiceClient interface { CreatePackageV1(ctx context.Context, in *CreatePackageV1Request, opts ...grpc.CallOption) (*CreatePackageV1Response, error) DescribePackageV1(ctx context.Context, in *DescribePackageV1Request, opts ...grpc.CallOption) (*DescribePackageV1Response, error) ListPackagesV1(ctx context.Context, in *ListPackagesV1Request, opts ...grpc.CallOption) (*ListPackagesV1Response, error) RemovePackageV1(ctx context.Context, in *RemovePackageV1Request, opts ...grpc.CallOption) (*RemovePackageV1Response, error) UpdatePackageV1(ctx context.Context, in *UpdatePackageV1Request, opts ...grpc.CallOption) (*UpdatePackageV1Response, error) }
LogisticPackageApiServiceClient is the client API for LogisticPackageApiService 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 NewLogisticPackageApiServiceClient ¶
func NewLogisticPackageApiServiceClient(cc grpc.ClientConnInterface) LogisticPackageApiServiceClient
type LogisticPackageApiServiceServer ¶
type LogisticPackageApiServiceServer interface { CreatePackageV1(context.Context, *CreatePackageV1Request) (*CreatePackageV1Response, error) DescribePackageV1(context.Context, *DescribePackageV1Request) (*DescribePackageV1Response, error) ListPackagesV1(context.Context, *ListPackagesV1Request) (*ListPackagesV1Response, error) RemovePackageV1(context.Context, *RemovePackageV1Request) (*RemovePackageV1Response, error) UpdatePackageV1(context.Context, *UpdatePackageV1Request) (*UpdatePackageV1Response, error) // contains filtered or unexported methods }
LogisticPackageApiServiceServer is the server API for LogisticPackageApiService service. All implementations must embed UnimplementedLogisticPackageApiServiceServer for forward compatibility
type MaybeBool ¶
type MaybeBool struct { Reusable bool `protobuf:"varint,1,opt,name=Reusable,proto3" json:"Reusable,omitempty"` // contains filtered or unexported fields }
func (*MaybeBool) Descriptor
deprecated
func (*MaybeBool) GetReusable ¶
func (*MaybeBool) ProtoMessage ¶
func (*MaybeBool) ProtoMessage()
func (*MaybeBool) ProtoReflect ¶
func (x *MaybeBool) ProtoReflect() protoreflect.Message
type MaybeBoolValidationError ¶
type MaybeBoolValidationError struct {
// contains filtered or unexported fields
}
MaybeBoolValidationError is the validation error returned by MaybeBool.Validate if the designated constraints aren't met.
func (MaybeBoolValidationError) Cause ¶
func (e MaybeBoolValidationError) Cause() error
Cause function returns cause value.
func (MaybeBoolValidationError) Error ¶
func (e MaybeBoolValidationError) Error() string
Error satisfies the builtin error interface
func (MaybeBoolValidationError) ErrorName ¶
func (e MaybeBoolValidationError) ErrorName() string
ErrorName returns error name.
func (MaybeBoolValidationError) Field ¶
func (e MaybeBoolValidationError) Field() string
Field function returns field value.
func (MaybeBoolValidationError) Key ¶
func (e MaybeBoolValidationError) Key() bool
Key function returns key value.
func (MaybeBoolValidationError) Reason ¶
func (e MaybeBoolValidationError) Reason() string
Reason function returns reason value.
type MaybeTimestamp ¶
type MaybeTimestamp struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Time,proto3" json:"Time,omitempty"` // contains filtered or unexported fields }
func (*MaybeTimestamp) Descriptor
deprecated
func (*MaybeTimestamp) Descriptor() ([]byte, []int)
Deprecated: Use MaybeTimestamp.ProtoReflect.Descriptor instead.
func (*MaybeTimestamp) GetTime ¶
func (x *MaybeTimestamp) GetTime() *timestamppb.Timestamp
func (*MaybeTimestamp) ProtoMessage ¶
func (*MaybeTimestamp) ProtoMessage()
func (*MaybeTimestamp) ProtoReflect ¶
func (x *MaybeTimestamp) ProtoReflect() protoreflect.Message
func (*MaybeTimestamp) Reset ¶
func (x *MaybeTimestamp) Reset()
func (*MaybeTimestamp) String ¶
func (x *MaybeTimestamp) String() string
func (*MaybeTimestamp) Validate ¶
func (m *MaybeTimestamp) Validate() error
Validate checks the field values on MaybeTimestamp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type MaybeTimestampValidationError ¶
type MaybeTimestampValidationError struct {
// contains filtered or unexported fields
}
MaybeTimestampValidationError is the validation error returned by MaybeTimestamp.Validate if the designated constraints aren't met.
func (MaybeTimestampValidationError) Cause ¶
func (e MaybeTimestampValidationError) Cause() error
Cause function returns cause value.
func (MaybeTimestampValidationError) Error ¶
func (e MaybeTimestampValidationError) Error() string
Error satisfies the builtin error interface
func (MaybeTimestampValidationError) ErrorName ¶
func (e MaybeTimestampValidationError) ErrorName() string
ErrorName returns error name.
func (MaybeTimestampValidationError) Field ¶
func (e MaybeTimestampValidationError) Field() string
Field function returns field value.
func (MaybeTimestampValidationError) Key ¶
func (e MaybeTimestampValidationError) Key() bool
Key function returns key value.
func (MaybeTimestampValidationError) Reason ¶
func (e MaybeTimestampValidationError) Reason() string
Reason function returns reason value.
type Package ¶
type Package struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` Material string `protobuf:"bytes,3,opt,name=Material,proto3" json:"Material,omitempty"` MaximumVolume float32 `protobuf:"fixed32,4,opt,name=MaximumVolume,proto3" json:"MaximumVolume,omitempty"` //cm^3 Reusable bool `protobuf:"varint,5,opt,name=Reusable,proto3" json:"Reusable,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=Created,proto3" json:"Created,omitempty"` Updated *MaybeTimestamp `protobuf:"bytes,7,opt,name=Updated,proto3" json:"Updated,omitempty"` // contains filtered or unexported fields }
func (*Package) Descriptor
deprecated
func (*Package) GetCreated ¶
func (x *Package) GetCreated() *timestamppb.Timestamp
func (*Package) GetMaterial ¶
func (*Package) GetMaximumVolume ¶
func (*Package) GetReusable ¶
func (*Package) GetUpdated ¶
func (x *Package) GetUpdated() *MaybeTimestamp
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type PackageValidationError ¶
type PackageValidationError struct {
// contains filtered or unexported fields
}
PackageValidationError is the validation error returned by Package.Validate if the designated constraints aren't met.
func (PackageValidationError) Cause ¶
func (e PackageValidationError) Cause() error
Cause function returns cause value.
func (PackageValidationError) Error ¶
func (e PackageValidationError) Error() string
Error satisfies the builtin error interface
func (PackageValidationError) ErrorName ¶
func (e PackageValidationError) ErrorName() string
ErrorName returns error name.
func (PackageValidationError) Field ¶
func (e PackageValidationError) Field() string
Field function returns field value.
func (PackageValidationError) Key ¶
func (e PackageValidationError) Key() bool
Key function returns key value.
func (PackageValidationError) Reason ¶
func (e PackageValidationError) Reason() string
Reason function returns reason value.
type RemovePackageV1Request ¶
type RemovePackageV1Request struct { PackageID uint64 `protobuf:"varint,1,opt,name=PackageID,proto3" json:"PackageID,omitempty"` // contains filtered or unexported fields }
func (*RemovePackageV1Request) Descriptor
deprecated
func (*RemovePackageV1Request) Descriptor() ([]byte, []int)
Deprecated: Use RemovePackageV1Request.ProtoReflect.Descriptor instead.
func (*RemovePackageV1Request) GetPackageID ¶
func (x *RemovePackageV1Request) GetPackageID() uint64
func (*RemovePackageV1Request) ProtoMessage ¶
func (*RemovePackageV1Request) ProtoMessage()
func (*RemovePackageV1Request) ProtoReflect ¶
func (x *RemovePackageV1Request) ProtoReflect() protoreflect.Message
func (*RemovePackageV1Request) Reset ¶
func (x *RemovePackageV1Request) Reset()
func (*RemovePackageV1Request) String ¶
func (x *RemovePackageV1Request) String() string
func (*RemovePackageV1Request) Validate ¶
func (m *RemovePackageV1Request) Validate() error
Validate checks the field values on RemovePackageV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RemovePackageV1RequestValidationError ¶
type RemovePackageV1RequestValidationError struct {
// contains filtered or unexported fields
}
RemovePackageV1RequestValidationError is the validation error returned by RemovePackageV1Request.Validate if the designated constraints aren't met.
func (RemovePackageV1RequestValidationError) Cause ¶
func (e RemovePackageV1RequestValidationError) Cause() error
Cause function returns cause value.
func (RemovePackageV1RequestValidationError) Error ¶
func (e RemovePackageV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RemovePackageV1RequestValidationError) ErrorName ¶
func (e RemovePackageV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RemovePackageV1RequestValidationError) Field ¶
func (e RemovePackageV1RequestValidationError) Field() string
Field function returns field value.
func (RemovePackageV1RequestValidationError) Key ¶
func (e RemovePackageV1RequestValidationError) Key() bool
Key function returns key value.
func (RemovePackageV1RequestValidationError) Reason ¶
func (e RemovePackageV1RequestValidationError) Reason() string
Reason function returns reason value.
type RemovePackageV1Response ¶
type RemovePackageV1Response struct { Suc bool `protobuf:"varint,1,opt,name=Suc,proto3" json:"Suc,omitempty"` // contains filtered or unexported fields }
func (*RemovePackageV1Response) Descriptor
deprecated
func (*RemovePackageV1Response) Descriptor() ([]byte, []int)
Deprecated: Use RemovePackageV1Response.ProtoReflect.Descriptor instead.
func (*RemovePackageV1Response) GetSuc ¶
func (x *RemovePackageV1Response) GetSuc() bool
func (*RemovePackageV1Response) ProtoMessage ¶
func (*RemovePackageV1Response) ProtoMessage()
func (*RemovePackageV1Response) ProtoReflect ¶
func (x *RemovePackageV1Response) ProtoReflect() protoreflect.Message
func (*RemovePackageV1Response) Reset ¶
func (x *RemovePackageV1Response) Reset()
func (*RemovePackageV1Response) String ¶
func (x *RemovePackageV1Response) String() string
func (*RemovePackageV1Response) Validate ¶
func (m *RemovePackageV1Response) Validate() error
Validate checks the field values on RemovePackageV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RemovePackageV1ResponseValidationError ¶
type RemovePackageV1ResponseValidationError struct {
// contains filtered or unexported fields
}
RemovePackageV1ResponseValidationError is the validation error returned by RemovePackageV1Response.Validate if the designated constraints aren't met.
func (RemovePackageV1ResponseValidationError) Cause ¶
func (e RemovePackageV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (RemovePackageV1ResponseValidationError) Error ¶
func (e RemovePackageV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RemovePackageV1ResponseValidationError) ErrorName ¶
func (e RemovePackageV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RemovePackageV1ResponseValidationError) Field ¶
func (e RemovePackageV1ResponseValidationError) Field() string
Field function returns field value.
func (RemovePackageV1ResponseValidationError) Key ¶
func (e RemovePackageV1ResponseValidationError) Key() bool
Key function returns key value.
func (RemovePackageV1ResponseValidationError) Reason ¶
func (e RemovePackageV1ResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedLogisticPackageApiServiceServer ¶
type UnimplementedLogisticPackageApiServiceServer struct { }
UnimplementedLogisticPackageApiServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLogisticPackageApiServiceServer) CreatePackageV1 ¶
func (UnimplementedLogisticPackageApiServiceServer) CreatePackageV1(context.Context, *CreatePackageV1Request) (*CreatePackageV1Response, error)
func (UnimplementedLogisticPackageApiServiceServer) DescribePackageV1 ¶
func (UnimplementedLogisticPackageApiServiceServer) DescribePackageV1(context.Context, *DescribePackageV1Request) (*DescribePackageV1Response, error)
func (UnimplementedLogisticPackageApiServiceServer) ListPackagesV1 ¶
func (UnimplementedLogisticPackageApiServiceServer) ListPackagesV1(context.Context, *ListPackagesV1Request) (*ListPackagesV1Response, error)
func (UnimplementedLogisticPackageApiServiceServer) RemovePackageV1 ¶
func (UnimplementedLogisticPackageApiServiceServer) RemovePackageV1(context.Context, *RemovePackageV1Request) (*RemovePackageV1Response, error)
func (UnimplementedLogisticPackageApiServiceServer) UpdatePackageV1 ¶
func (UnimplementedLogisticPackageApiServiceServer) UpdatePackageV1(context.Context, *UpdatePackageV1Request) (*UpdatePackageV1Response, error)
type UnsafeLogisticPackageApiServiceServer ¶
type UnsafeLogisticPackageApiServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogisticPackageApiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogisticPackageApiServiceServer will result in compilation errors.
type UpdatePackageV1Request ¶
type UpdatePackageV1Request struct { PackageID uint64 `protobuf:"varint,1,opt,name=PackageID,proto3" json:"PackageID,omitempty"` // id to update Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` // zero val == empty Material string `protobuf:"bytes,3,opt,name=Material,proto3" json:"Material,omitempty"` // zero val == empty MaximumVolume float32 `protobuf:"fixed32,4,opt,name=MaximumVolume,proto3" json:"MaximumVolume,omitempty"` // zero val == empty Reusable *MaybeBool `protobuf:"bytes,5,opt,name=Reusable,proto3" json:"Reusable,omitempty"` // contains filtered or unexported fields }
func (*UpdatePackageV1Request) Descriptor
deprecated
func (*UpdatePackageV1Request) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePackageV1Request.ProtoReflect.Descriptor instead.
func (*UpdatePackageV1Request) GetMaterial ¶
func (x *UpdatePackageV1Request) GetMaterial() string
func (*UpdatePackageV1Request) GetMaximumVolume ¶
func (x *UpdatePackageV1Request) GetMaximumVolume() float32
func (*UpdatePackageV1Request) GetPackageID ¶
func (x *UpdatePackageV1Request) GetPackageID() uint64
func (*UpdatePackageV1Request) GetReusable ¶
func (x *UpdatePackageV1Request) GetReusable() *MaybeBool
func (*UpdatePackageV1Request) GetTitle ¶
func (x *UpdatePackageV1Request) GetTitle() string
func (*UpdatePackageV1Request) ProtoMessage ¶
func (*UpdatePackageV1Request) ProtoMessage()
func (*UpdatePackageV1Request) ProtoReflect ¶
func (x *UpdatePackageV1Request) ProtoReflect() protoreflect.Message
func (*UpdatePackageV1Request) Reset ¶
func (x *UpdatePackageV1Request) Reset()
func (*UpdatePackageV1Request) String ¶
func (x *UpdatePackageV1Request) String() string
func (*UpdatePackageV1Request) Validate ¶
func (m *UpdatePackageV1Request) Validate() error
Validate checks the field values on UpdatePackageV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdatePackageV1RequestValidationError ¶
type UpdatePackageV1RequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePackageV1RequestValidationError is the validation error returned by UpdatePackageV1Request.Validate if the designated constraints aren't met.
func (UpdatePackageV1RequestValidationError) Cause ¶
func (e UpdatePackageV1RequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePackageV1RequestValidationError) Error ¶
func (e UpdatePackageV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePackageV1RequestValidationError) ErrorName ¶
func (e UpdatePackageV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePackageV1RequestValidationError) Field ¶
func (e UpdatePackageV1RequestValidationError) Field() string
Field function returns field value.
func (UpdatePackageV1RequestValidationError) Key ¶
func (e UpdatePackageV1RequestValidationError) Key() bool
Key function returns key value.
func (UpdatePackageV1RequestValidationError) Reason ¶
func (e UpdatePackageV1RequestValidationError) Reason() string
Reason function returns reason value.
type UpdatePackageV1Response ¶
type UpdatePackageV1Response struct { Suc bool `protobuf:"varint,1,opt,name=Suc,proto3" json:"Suc,omitempty"` // contains filtered or unexported fields }
func (*UpdatePackageV1Response) Descriptor
deprecated
func (*UpdatePackageV1Response) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePackageV1Response.ProtoReflect.Descriptor instead.
func (*UpdatePackageV1Response) GetSuc ¶
func (x *UpdatePackageV1Response) GetSuc() bool
func (*UpdatePackageV1Response) ProtoMessage ¶
func (*UpdatePackageV1Response) ProtoMessage()
func (*UpdatePackageV1Response) ProtoReflect ¶
func (x *UpdatePackageV1Response) ProtoReflect() protoreflect.Message
func (*UpdatePackageV1Response) Reset ¶
func (x *UpdatePackageV1Response) Reset()
func (*UpdatePackageV1Response) String ¶
func (x *UpdatePackageV1Response) String() string
func (*UpdatePackageV1Response) Validate ¶
func (m *UpdatePackageV1Response) Validate() error
Validate checks the field values on UpdatePackageV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdatePackageV1ResponseValidationError ¶
type UpdatePackageV1ResponseValidationError struct {
// contains filtered or unexported fields
}
UpdatePackageV1ResponseValidationError is the validation error returned by UpdatePackageV1Response.Validate if the designated constraints aren't met.
func (UpdatePackageV1ResponseValidationError) Cause ¶
func (e UpdatePackageV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdatePackageV1ResponseValidationError) Error ¶
func (e UpdatePackageV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePackageV1ResponseValidationError) ErrorName ¶
func (e UpdatePackageV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePackageV1ResponseValidationError) Field ¶
func (e UpdatePackageV1ResponseValidationError) Field() string
Field function returns field value.
func (UpdatePackageV1ResponseValidationError) Key ¶
func (e UpdatePackageV1ResponseValidationError) Key() bool
Key function returns key value.
func (UpdatePackageV1ResponseValidationError) Reason ¶
func (e UpdatePackageV1ResponseValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
google.golang.org
|
|
protobuf/types/known/timestamppb
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
|
Package timestamppb contains generated types for google/protobuf/timestamp.proto. |