Documentation ¶
Overview ¶
Package logistic_parcel_api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLogisticParcelApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLogisticParcelApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLogisticParcelApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLogisticParcelApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLogisticParcelApiServiceServer(s grpc.ServiceRegistrar, srv LogisticParcelApiServiceServer)
- type CreateParcelRequest
- func (*CreateParcelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateParcelRequest) GetName() string
- func (*CreateParcelRequest) ProtoMessage()
- func (x *CreateParcelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateParcelRequest) Reset()
- func (x *CreateParcelRequest) String() string
- func (m *CreateParcelRequest) Validate() error
- type CreateParcelRequestValidationError
- func (e CreateParcelRequestValidationError) Cause() error
- func (e CreateParcelRequestValidationError) Error() string
- func (e CreateParcelRequestValidationError) ErrorName() string
- func (e CreateParcelRequestValidationError) Field() string
- func (e CreateParcelRequestValidationError) Key() bool
- func (e CreateParcelRequestValidationError) Reason() string
- type CreateParcelResponse
- func (*CreateParcelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateParcelResponse) GetValue() *Parcel
- func (*CreateParcelResponse) ProtoMessage()
- func (x *CreateParcelResponse) ProtoReflect() protoreflect.Message
- func (x *CreateParcelResponse) Reset()
- func (x *CreateParcelResponse) String() string
- func (m *CreateParcelResponse) Validate() error
- type CreateParcelResponseValidationError
- func (e CreateParcelResponseValidationError) Cause() error
- func (e CreateParcelResponseValidationError) Error() string
- func (e CreateParcelResponseValidationError) ErrorName() string
- func (e CreateParcelResponseValidationError) Field() string
- func (e CreateParcelResponseValidationError) Key() bool
- func (e CreateParcelResponseValidationError) Reason() string
- type DescribeParcelRequest
- func (*DescribeParcelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeParcelRequest) GetParcelId() uint64
- func (*DescribeParcelRequest) ProtoMessage()
- func (x *DescribeParcelRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeParcelRequest) Reset()
- func (x *DescribeParcelRequest) String() string
- func (m *DescribeParcelRequest) Validate() error
- type DescribeParcelRequestValidationError
- func (e DescribeParcelRequestValidationError) Cause() error
- func (e DescribeParcelRequestValidationError) Error() string
- func (e DescribeParcelRequestValidationError) ErrorName() string
- func (e DescribeParcelRequestValidationError) Field() string
- func (e DescribeParcelRequestValidationError) Key() bool
- func (e DescribeParcelRequestValidationError) Reason() string
- type DescribeParcelResponse
- func (*DescribeParcelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeParcelResponse) GetValue() *Parcel
- func (*DescribeParcelResponse) ProtoMessage()
- func (x *DescribeParcelResponse) ProtoReflect() protoreflect.Message
- func (x *DescribeParcelResponse) Reset()
- func (x *DescribeParcelResponse) String() string
- func (m *DescribeParcelResponse) Validate() error
- type DescribeParcelResponseValidationError
- func (e DescribeParcelResponseValidationError) Cause() error
- func (e DescribeParcelResponseValidationError) Error() string
- func (e DescribeParcelResponseValidationError) ErrorName() string
- func (e DescribeParcelResponseValidationError) Field() string
- func (e DescribeParcelResponseValidationError) Key() bool
- func (e DescribeParcelResponseValidationError) Reason() string
- type DescribeParcelV1Request
- func (*DescribeParcelV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeParcelV1Request) GetParcelId() uint64
- func (*DescribeParcelV1Request) ProtoMessage()
- func (x *DescribeParcelV1Request) ProtoReflect() protoreflect.Message
- func (x *DescribeParcelV1Request) Reset()
- func (x *DescribeParcelV1Request) String() string
- func (m *DescribeParcelV1Request) Validate() error
- type DescribeParcelV1RequestValidationError
- func (e DescribeParcelV1RequestValidationError) Cause() error
- func (e DescribeParcelV1RequestValidationError) Error() string
- func (e DescribeParcelV1RequestValidationError) ErrorName() string
- func (e DescribeParcelV1RequestValidationError) Field() string
- func (e DescribeParcelV1RequestValidationError) Key() bool
- func (e DescribeParcelV1RequestValidationError) Reason() string
- type DescribeParcelV1Response
- func (*DescribeParcelV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeParcelV1Response) GetValue() *Parcel
- func (*DescribeParcelV1Response) ProtoMessage()
- func (x *DescribeParcelV1Response) ProtoReflect() protoreflect.Message
- func (x *DescribeParcelV1Response) Reset()
- func (x *DescribeParcelV1Response) String() string
- func (m *DescribeParcelV1Response) Validate() error
- type DescribeParcelV1ResponseValidationError
- func (e DescribeParcelV1ResponseValidationError) Cause() error
- func (e DescribeParcelV1ResponseValidationError) Error() string
- func (e DescribeParcelV1ResponseValidationError) ErrorName() string
- func (e DescribeParcelV1ResponseValidationError) Field() string
- func (e DescribeParcelV1ResponseValidationError) Key() bool
- func (e DescribeParcelV1ResponseValidationError) Reason() string
- type ListParcelsRequest
- func (*ListParcelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListParcelsRequest) GetCursor() uint64
- func (x *ListParcelsRequest) GetOffset() uint64
- func (*ListParcelsRequest) ProtoMessage()
- func (x *ListParcelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListParcelsRequest) Reset()
- func (x *ListParcelsRequest) String() string
- func (m *ListParcelsRequest) Validate() error
- type ListParcelsRequestValidationError
- func (e ListParcelsRequestValidationError) Cause() error
- func (e ListParcelsRequestValidationError) Error() string
- func (e ListParcelsRequestValidationError) ErrorName() string
- func (e ListParcelsRequestValidationError) Field() string
- func (e ListParcelsRequestValidationError) Key() bool
- func (e ListParcelsRequestValidationError) Reason() string
- type ListParcelsResponse
- func (*ListParcelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListParcelsResponse) GetValue() []*Parcel
- func (*ListParcelsResponse) ProtoMessage()
- func (x *ListParcelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListParcelsResponse) Reset()
- func (x *ListParcelsResponse) String() string
- func (m *ListParcelsResponse) Validate() error
- type ListParcelsResponseValidationError
- func (e ListParcelsResponseValidationError) Cause() error
- func (e ListParcelsResponseValidationError) Error() string
- func (e ListParcelsResponseValidationError) ErrorName() string
- func (e ListParcelsResponseValidationError) Field() string
- func (e ListParcelsResponseValidationError) Key() bool
- func (e ListParcelsResponseValidationError) Reason() string
- type LogisticParcelApiServiceClient
- type LogisticParcelApiServiceServer
- type Parcel
- func (*Parcel) Descriptor() ([]byte, []int)deprecated
- func (x *Parcel) GetCreated() *timestamppb.Timestamp
- func (x *Parcel) GetId() uint64
- func (x *Parcel) GetName() string
- func (*Parcel) ProtoMessage()
- func (x *Parcel) ProtoReflect() protoreflect.Message
- func (x *Parcel) Reset()
- func (x *Parcel) String() string
- func (m *Parcel) Validate() error
- type ParcelValidationError
- type RemoveParcelRequest
- func (*RemoveParcelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveParcelRequest) GetParcelId() uint64
- func (*RemoveParcelRequest) ProtoMessage()
- func (x *RemoveParcelRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveParcelRequest) Reset()
- func (x *RemoveParcelRequest) String() string
- func (m *RemoveParcelRequest) Validate() error
- type RemoveParcelRequestValidationError
- func (e RemoveParcelRequestValidationError) Cause() error
- func (e RemoveParcelRequestValidationError) Error() string
- func (e RemoveParcelRequestValidationError) ErrorName() string
- func (e RemoveParcelRequestValidationError) Field() string
- func (e RemoveParcelRequestValidationError) Key() bool
- func (e RemoveParcelRequestValidationError) Reason() string
- type RemoveParcelResponse
- func (*RemoveParcelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveParcelResponse) GetSuccess() bool
- func (*RemoveParcelResponse) ProtoMessage()
- func (x *RemoveParcelResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveParcelResponse) Reset()
- func (x *RemoveParcelResponse) String() string
- func (m *RemoveParcelResponse) Validate() error
- type RemoveParcelResponseValidationError
- func (e RemoveParcelResponseValidationError) Cause() error
- func (e RemoveParcelResponseValidationError) Error() string
- func (e RemoveParcelResponseValidationError) ErrorName() string
- func (e RemoveParcelResponseValidationError) Field() string
- func (e RemoveParcelResponseValidationError) Key() bool
- func (e RemoveParcelResponseValidationError) Reason() string
- type UnimplementedLogisticParcelApiServiceServer
- func (UnimplementedLogisticParcelApiServiceServer) CreateParcel(context.Context, *CreateParcelRequest) (*CreateParcelResponse, error)
- func (UnimplementedLogisticParcelApiServiceServer) DescribeParcel(context.Context, *DescribeParcelRequest) (*DescribeParcelResponse, error)
- func (UnimplementedLogisticParcelApiServiceServer) DescribeParcelV1(context.Context, *DescribeParcelV1Request) (*DescribeParcelV1Response, error)
- func (UnimplementedLogisticParcelApiServiceServer) ListParcels(context.Context, *ListParcelsRequest) (*ListParcelsResponse, error)
- func (UnimplementedLogisticParcelApiServiceServer) RemoveParcel(context.Context, *RemoveParcelRequest) (*RemoveParcelResponse, error)
- type UnsafeLogisticParcelApiServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_gempellm_logistic_parcel_api_v1_logistic_parcel_api_proto protoreflect.FileDescriptor
var LogisticParcelApiService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gempellm.logistic_parcel_api.v1.LogisticParcelApiService", HandlerType: (*LogisticParcelApiServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DescribeParcelV1", Handler: _LogisticParcelApiService_DescribeParcelV1_Handler, }, { MethodName: "CreateParcel", Handler: _LogisticParcelApiService_CreateParcel_Handler, }, { MethodName: "DescribeParcel", Handler: _LogisticParcelApiService_DescribeParcel_Handler, }, { MethodName: "ListParcels", Handler: _LogisticParcelApiService_ListParcels_Handler, }, { MethodName: "RemoveParcel", Handler: _LogisticParcelApiService_RemoveParcel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gempellm/logistic_parcel_api/v1/logistic_parcel_api.proto", }
LogisticParcelApiService_ServiceDesc is the grpc.ServiceDesc for LogisticParcelApiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogisticParcelApiServiceHandler ¶
func RegisterLogisticParcelApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLogisticParcelApiServiceHandler registers the http handlers for service LogisticParcelApiService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLogisticParcelApiServiceHandlerClient ¶
func RegisterLogisticParcelApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogisticParcelApiServiceClient) error
RegisterLogisticParcelApiServiceHandlerClient registers the http handlers for service LogisticParcelApiService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogisticParcelApiServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogisticParcelApiServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogisticParcelApiServiceClient" to call the correct interceptors.
func RegisterLogisticParcelApiServiceHandlerFromEndpoint ¶
func RegisterLogisticParcelApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLogisticParcelApiServiceHandlerFromEndpoint is same as RegisterLogisticParcelApiServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLogisticParcelApiServiceHandlerServer ¶
func RegisterLogisticParcelApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogisticParcelApiServiceServer) error
RegisterLogisticParcelApiServiceHandlerServer registers the http handlers for service LogisticParcelApiService to "mux". UnaryRPC :call LogisticParcelApiServiceServer 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 RegisterLogisticParcelApiServiceHandlerFromEndpoint instead.
func RegisterLogisticParcelApiServiceServer ¶
func RegisterLogisticParcelApiServiceServer(s grpc.ServiceRegistrar, srv LogisticParcelApiServiceServer)
Types ¶
type CreateParcelRequest ¶
type CreateParcelRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateParcelRequest) Descriptor
deprecated
func (*CreateParcelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateParcelRequest.ProtoReflect.Descriptor instead.
func (*CreateParcelRequest) GetName ¶
func (x *CreateParcelRequest) GetName() string
func (*CreateParcelRequest) ProtoMessage ¶
func (*CreateParcelRequest) ProtoMessage()
func (*CreateParcelRequest) ProtoReflect ¶
func (x *CreateParcelRequest) ProtoReflect() protoreflect.Message
func (*CreateParcelRequest) Reset ¶
func (x *CreateParcelRequest) Reset()
func (*CreateParcelRequest) String ¶
func (x *CreateParcelRequest) String() string
func (*CreateParcelRequest) Validate ¶
func (m *CreateParcelRequest) Validate() error
Validate checks the field values on CreateParcelRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateParcelRequestValidationError ¶
type CreateParcelRequestValidationError struct {
// contains filtered or unexported fields
}
CreateParcelRequestValidationError is the validation error returned by CreateParcelRequest.Validate if the designated constraints aren't met.
func (CreateParcelRequestValidationError) Cause ¶
func (e CreateParcelRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateParcelRequestValidationError) Error ¶
func (e CreateParcelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateParcelRequestValidationError) ErrorName ¶
func (e CreateParcelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateParcelRequestValidationError) Field ¶
func (e CreateParcelRequestValidationError) Field() string
Field function returns field value.
func (CreateParcelRequestValidationError) Key ¶
func (e CreateParcelRequestValidationError) Key() bool
Key function returns key value.
func (CreateParcelRequestValidationError) Reason ¶
func (e CreateParcelRequestValidationError) Reason() string
Reason function returns reason value.
type CreateParcelResponse ¶
type CreateParcelResponse struct { Value *Parcel `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*CreateParcelResponse) Descriptor
deprecated
func (*CreateParcelResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateParcelResponse.ProtoReflect.Descriptor instead.
func (*CreateParcelResponse) GetValue ¶
func (x *CreateParcelResponse) GetValue() *Parcel
func (*CreateParcelResponse) ProtoMessage ¶
func (*CreateParcelResponse) ProtoMessage()
func (*CreateParcelResponse) ProtoReflect ¶
func (x *CreateParcelResponse) ProtoReflect() protoreflect.Message
func (*CreateParcelResponse) Reset ¶
func (x *CreateParcelResponse) Reset()
func (*CreateParcelResponse) String ¶
func (x *CreateParcelResponse) String() string
func (*CreateParcelResponse) Validate ¶
func (m *CreateParcelResponse) Validate() error
Validate checks the field values on CreateParcelResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateParcelResponseValidationError ¶
type CreateParcelResponseValidationError struct {
// contains filtered or unexported fields
}
CreateParcelResponseValidationError is the validation error returned by CreateParcelResponse.Validate if the designated constraints aren't met.
func (CreateParcelResponseValidationError) Cause ¶
func (e CreateParcelResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateParcelResponseValidationError) Error ¶
func (e CreateParcelResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateParcelResponseValidationError) ErrorName ¶
func (e CreateParcelResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateParcelResponseValidationError) Field ¶
func (e CreateParcelResponseValidationError) Field() string
Field function returns field value.
func (CreateParcelResponseValidationError) Key ¶
func (e CreateParcelResponseValidationError) Key() bool
Key function returns key value.
func (CreateParcelResponseValidationError) Reason ¶
func (e CreateParcelResponseValidationError) Reason() string
Reason function returns reason value.
type DescribeParcelRequest ¶
type DescribeParcelRequest struct { ParcelId uint64 `protobuf:"varint,1,opt,name=parcel_id,json=parcelId,proto3" json:"parcel_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeParcelRequest) Descriptor
deprecated
func (*DescribeParcelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeParcelRequest.ProtoReflect.Descriptor instead.
func (*DescribeParcelRequest) GetParcelId ¶
func (x *DescribeParcelRequest) GetParcelId() uint64
func (*DescribeParcelRequest) ProtoMessage ¶
func (*DescribeParcelRequest) ProtoMessage()
func (*DescribeParcelRequest) ProtoReflect ¶
func (x *DescribeParcelRequest) ProtoReflect() protoreflect.Message
func (*DescribeParcelRequest) Reset ¶
func (x *DescribeParcelRequest) Reset()
func (*DescribeParcelRequest) String ¶
func (x *DescribeParcelRequest) String() string
func (*DescribeParcelRequest) Validate ¶
func (m *DescribeParcelRequest) Validate() error
Validate checks the field values on DescribeParcelRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DescribeParcelRequestValidationError ¶
type DescribeParcelRequestValidationError struct {
// contains filtered or unexported fields
}
DescribeParcelRequestValidationError is the validation error returned by DescribeParcelRequest.Validate if the designated constraints aren't met.
func (DescribeParcelRequestValidationError) Cause ¶
func (e DescribeParcelRequestValidationError) Cause() error
Cause function returns cause value.
func (DescribeParcelRequestValidationError) Error ¶
func (e DescribeParcelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeParcelRequestValidationError) ErrorName ¶
func (e DescribeParcelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeParcelRequestValidationError) Field ¶
func (e DescribeParcelRequestValidationError) Field() string
Field function returns field value.
func (DescribeParcelRequestValidationError) Key ¶
func (e DescribeParcelRequestValidationError) Key() bool
Key function returns key value.
func (DescribeParcelRequestValidationError) Reason ¶
func (e DescribeParcelRequestValidationError) Reason() string
Reason function returns reason value.
type DescribeParcelResponse ¶
type DescribeParcelResponse struct { Value *Parcel `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DescribeParcelResponse) Descriptor
deprecated
func (*DescribeParcelResponse) Descriptor() ([]byte, []int)
Deprecated: Use DescribeParcelResponse.ProtoReflect.Descriptor instead.
func (*DescribeParcelResponse) GetValue ¶
func (x *DescribeParcelResponse) GetValue() *Parcel
func (*DescribeParcelResponse) ProtoMessage ¶
func (*DescribeParcelResponse) ProtoMessage()
func (*DescribeParcelResponse) ProtoReflect ¶
func (x *DescribeParcelResponse) ProtoReflect() protoreflect.Message
func (*DescribeParcelResponse) Reset ¶
func (x *DescribeParcelResponse) Reset()
func (*DescribeParcelResponse) String ¶
func (x *DescribeParcelResponse) String() string
func (*DescribeParcelResponse) Validate ¶
func (m *DescribeParcelResponse) Validate() error
Validate checks the field values on DescribeParcelResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DescribeParcelResponseValidationError ¶
type DescribeParcelResponseValidationError struct {
// contains filtered or unexported fields
}
DescribeParcelResponseValidationError is the validation error returned by DescribeParcelResponse.Validate if the designated constraints aren't met.
func (DescribeParcelResponseValidationError) Cause ¶
func (e DescribeParcelResponseValidationError) Cause() error
Cause function returns cause value.
func (DescribeParcelResponseValidationError) Error ¶
func (e DescribeParcelResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeParcelResponseValidationError) ErrorName ¶
func (e DescribeParcelResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeParcelResponseValidationError) Field ¶
func (e DescribeParcelResponseValidationError) Field() string
Field function returns field value.
func (DescribeParcelResponseValidationError) Key ¶
func (e DescribeParcelResponseValidationError) Key() bool
Key function returns key value.
func (DescribeParcelResponseValidationError) Reason ¶
func (e DescribeParcelResponseValidationError) Reason() string
Reason function returns reason value.
type DescribeParcelV1Request ¶
type DescribeParcelV1Request struct { ParcelId uint64 `protobuf:"varint,1,opt,name=parcel_id,json=parcelId,proto3" json:"parcel_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeParcelV1Request) Descriptor
deprecated
func (*DescribeParcelV1Request) Descriptor() ([]byte, []int)
Deprecated: Use DescribeParcelV1Request.ProtoReflect.Descriptor instead.
func (*DescribeParcelV1Request) GetParcelId ¶
func (x *DescribeParcelV1Request) GetParcelId() uint64
func (*DescribeParcelV1Request) ProtoMessage ¶
func (*DescribeParcelV1Request) ProtoMessage()
func (*DescribeParcelV1Request) ProtoReflect ¶
func (x *DescribeParcelV1Request) ProtoReflect() protoreflect.Message
func (*DescribeParcelV1Request) Reset ¶
func (x *DescribeParcelV1Request) Reset()
func (*DescribeParcelV1Request) String ¶
func (x *DescribeParcelV1Request) String() string
func (*DescribeParcelV1Request) Validate ¶
func (m *DescribeParcelV1Request) Validate() error
Validate checks the field values on DescribeParcelV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DescribeParcelV1RequestValidationError ¶
type DescribeParcelV1RequestValidationError struct {
// contains filtered or unexported fields
}
DescribeParcelV1RequestValidationError is the validation error returned by DescribeParcelV1Request.Validate if the designated constraints aren't met.
func (DescribeParcelV1RequestValidationError) Cause ¶
func (e DescribeParcelV1RequestValidationError) Cause() error
Cause function returns cause value.
func (DescribeParcelV1RequestValidationError) Error ¶
func (e DescribeParcelV1RequestValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeParcelV1RequestValidationError) ErrorName ¶
func (e DescribeParcelV1RequestValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeParcelV1RequestValidationError) Field ¶
func (e DescribeParcelV1RequestValidationError) Field() string
Field function returns field value.
func (DescribeParcelV1RequestValidationError) Key ¶
func (e DescribeParcelV1RequestValidationError) Key() bool
Key function returns key value.
func (DescribeParcelV1RequestValidationError) Reason ¶
func (e DescribeParcelV1RequestValidationError) Reason() string
Reason function returns reason value.
type DescribeParcelV1Response ¶
type DescribeParcelV1Response struct { Value *Parcel `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DescribeParcelV1Response) Descriptor
deprecated
func (*DescribeParcelV1Response) Descriptor() ([]byte, []int)
Deprecated: Use DescribeParcelV1Response.ProtoReflect.Descriptor instead.
func (*DescribeParcelV1Response) GetValue ¶
func (x *DescribeParcelV1Response) GetValue() *Parcel
func (*DescribeParcelV1Response) ProtoMessage ¶
func (*DescribeParcelV1Response) ProtoMessage()
func (*DescribeParcelV1Response) ProtoReflect ¶
func (x *DescribeParcelV1Response) ProtoReflect() protoreflect.Message
func (*DescribeParcelV1Response) Reset ¶
func (x *DescribeParcelV1Response) Reset()
func (*DescribeParcelV1Response) String ¶
func (x *DescribeParcelV1Response) String() string
func (*DescribeParcelV1Response) Validate ¶
func (m *DescribeParcelV1Response) Validate() error
Validate checks the field values on DescribeParcelV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DescribeParcelV1ResponseValidationError ¶
type DescribeParcelV1ResponseValidationError struct {
// contains filtered or unexported fields
}
DescribeParcelV1ResponseValidationError is the validation error returned by DescribeParcelV1Response.Validate if the designated constraints aren't met.
func (DescribeParcelV1ResponseValidationError) Cause ¶
func (e DescribeParcelV1ResponseValidationError) Cause() error
Cause function returns cause value.
func (DescribeParcelV1ResponseValidationError) Error ¶
func (e DescribeParcelV1ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeParcelV1ResponseValidationError) ErrorName ¶
func (e DescribeParcelV1ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeParcelV1ResponseValidationError) Field ¶
func (e DescribeParcelV1ResponseValidationError) Field() string
Field function returns field value.
func (DescribeParcelV1ResponseValidationError) Key ¶
func (e DescribeParcelV1ResponseValidationError) Key() bool
Key function returns key value.
func (DescribeParcelV1ResponseValidationError) Reason ¶
func (e DescribeParcelV1ResponseValidationError) Reason() string
Reason function returns reason value.
type ListParcelsRequest ¶
type ListParcelsRequest struct { Cursor uint64 `protobuf:"varint,1,opt,name=cursor,proto3" json:"cursor,omitempty"` Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListParcelsRequest) Descriptor
deprecated
func (*ListParcelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListParcelsRequest.ProtoReflect.Descriptor instead.
func (*ListParcelsRequest) GetCursor ¶
func (x *ListParcelsRequest) GetCursor() uint64
func (*ListParcelsRequest) GetOffset ¶
func (x *ListParcelsRequest) GetOffset() uint64
func (*ListParcelsRequest) ProtoMessage ¶
func (*ListParcelsRequest) ProtoMessage()
func (*ListParcelsRequest) ProtoReflect ¶
func (x *ListParcelsRequest) ProtoReflect() protoreflect.Message
func (*ListParcelsRequest) Reset ¶
func (x *ListParcelsRequest) Reset()
func (*ListParcelsRequest) String ¶
func (x *ListParcelsRequest) String() string
func (*ListParcelsRequest) Validate ¶
func (m *ListParcelsRequest) Validate() error
Validate checks the field values on ListParcelsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListParcelsRequestValidationError ¶
type ListParcelsRequestValidationError struct {
// contains filtered or unexported fields
}
ListParcelsRequestValidationError is the validation error returned by ListParcelsRequest.Validate if the designated constraints aren't met.
func (ListParcelsRequestValidationError) Cause ¶
func (e ListParcelsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListParcelsRequestValidationError) Error ¶
func (e ListParcelsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListParcelsRequestValidationError) ErrorName ¶
func (e ListParcelsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListParcelsRequestValidationError) Field ¶
func (e ListParcelsRequestValidationError) Field() string
Field function returns field value.
func (ListParcelsRequestValidationError) Key ¶
func (e ListParcelsRequestValidationError) Key() bool
Key function returns key value.
func (ListParcelsRequestValidationError) Reason ¶
func (e ListParcelsRequestValidationError) Reason() string
Reason function returns reason value.
type ListParcelsResponse ¶
type ListParcelsResponse struct { Value []*Parcel `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ListParcelsResponse) Descriptor
deprecated
func (*ListParcelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListParcelsResponse.ProtoReflect.Descriptor instead.
func (*ListParcelsResponse) GetValue ¶
func (x *ListParcelsResponse) GetValue() []*Parcel
func (*ListParcelsResponse) ProtoMessage ¶
func (*ListParcelsResponse) ProtoMessage()
func (*ListParcelsResponse) ProtoReflect ¶
func (x *ListParcelsResponse) ProtoReflect() protoreflect.Message
func (*ListParcelsResponse) Reset ¶
func (x *ListParcelsResponse) Reset()
func (*ListParcelsResponse) String ¶
func (x *ListParcelsResponse) String() string
func (*ListParcelsResponse) Validate ¶
func (m *ListParcelsResponse) Validate() error
Validate checks the field values on ListParcelsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListParcelsResponseValidationError ¶
type ListParcelsResponseValidationError struct {
// contains filtered or unexported fields
}
ListParcelsResponseValidationError is the validation error returned by ListParcelsResponse.Validate if the designated constraints aren't met.
func (ListParcelsResponseValidationError) Cause ¶
func (e ListParcelsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListParcelsResponseValidationError) Error ¶
func (e ListParcelsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListParcelsResponseValidationError) ErrorName ¶
func (e ListParcelsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListParcelsResponseValidationError) Field ¶
func (e ListParcelsResponseValidationError) Field() string
Field function returns field value.
func (ListParcelsResponseValidationError) Key ¶
func (e ListParcelsResponseValidationError) Key() bool
Key function returns key value.
func (ListParcelsResponseValidationError) Reason ¶
func (e ListParcelsResponseValidationError) Reason() string
Reason function returns reason value.
type LogisticParcelApiServiceClient ¶
type LogisticParcelApiServiceClient interface { // DescribeParcelV1 - Describe a parcel DescribeParcelV1(ctx context.Context, in *DescribeParcelV1Request, opts ...grpc.CallOption) (*DescribeParcelV1Response, error) CreateParcel(ctx context.Context, in *CreateParcelRequest, opts ...grpc.CallOption) (*CreateParcelResponse, error) DescribeParcel(ctx context.Context, in *DescribeParcelRequest, opts ...grpc.CallOption) (*DescribeParcelResponse, error) ListParcels(ctx context.Context, in *ListParcelsRequest, opts ...grpc.CallOption) (*ListParcelsResponse, error) RemoveParcel(ctx context.Context, in *RemoveParcelRequest, opts ...grpc.CallOption) (*RemoveParcelResponse, error) }
LogisticParcelApiServiceClient is the client API for LogisticParcelApiService 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 NewLogisticParcelApiServiceClient ¶
func NewLogisticParcelApiServiceClient(cc grpc.ClientConnInterface) LogisticParcelApiServiceClient
type LogisticParcelApiServiceServer ¶
type LogisticParcelApiServiceServer interface { // DescribeParcelV1 - Describe a parcel DescribeParcelV1(context.Context, *DescribeParcelV1Request) (*DescribeParcelV1Response, error) CreateParcel(context.Context, *CreateParcelRequest) (*CreateParcelResponse, error) DescribeParcel(context.Context, *DescribeParcelRequest) (*DescribeParcelResponse, error) ListParcels(context.Context, *ListParcelsRequest) (*ListParcelsResponse, error) RemoveParcel(context.Context, *RemoveParcelRequest) (*RemoveParcelResponse, error) // contains filtered or unexported methods }
LogisticParcelApiServiceServer is the server API for LogisticParcelApiService service. All implementations must embed UnimplementedLogisticParcelApiServiceServer for forward compatibility
type Parcel ¶
type Parcel struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"` // contains filtered or unexported fields }
func (*Parcel) Descriptor
deprecated
func (*Parcel) GetCreated ¶
func (x *Parcel) GetCreated() *timestamppb.Timestamp
func (*Parcel) ProtoMessage ¶
func (*Parcel) ProtoMessage()
func (*Parcel) ProtoReflect ¶
func (x *Parcel) ProtoReflect() protoreflect.Message
type ParcelValidationError ¶
type ParcelValidationError struct {
// contains filtered or unexported fields
}
ParcelValidationError is the validation error returned by Parcel.Validate if the designated constraints aren't met.
func (ParcelValidationError) Cause ¶
func (e ParcelValidationError) Cause() error
Cause function returns cause value.
func (ParcelValidationError) Error ¶
func (e ParcelValidationError) Error() string
Error satisfies the builtin error interface
func (ParcelValidationError) ErrorName ¶
func (e ParcelValidationError) ErrorName() string
ErrorName returns error name.
func (ParcelValidationError) Field ¶
func (e ParcelValidationError) Field() string
Field function returns field value.
func (ParcelValidationError) Key ¶
func (e ParcelValidationError) Key() bool
Key function returns key value.
func (ParcelValidationError) Reason ¶
func (e ParcelValidationError) Reason() string
Reason function returns reason value.
type RemoveParcelRequest ¶
type RemoveParcelRequest struct { ParcelId uint64 `protobuf:"varint,1,opt,name=parcel_id,json=parcelId,proto3" json:"parcel_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveParcelRequest) Descriptor
deprecated
func (*RemoveParcelRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveParcelRequest.ProtoReflect.Descriptor instead.
func (*RemoveParcelRequest) GetParcelId ¶
func (x *RemoveParcelRequest) GetParcelId() uint64
func (*RemoveParcelRequest) ProtoMessage ¶
func (*RemoveParcelRequest) ProtoMessage()
func (*RemoveParcelRequest) ProtoReflect ¶
func (x *RemoveParcelRequest) ProtoReflect() protoreflect.Message
func (*RemoveParcelRequest) Reset ¶
func (x *RemoveParcelRequest) Reset()
func (*RemoveParcelRequest) String ¶
func (x *RemoveParcelRequest) String() string
func (*RemoveParcelRequest) Validate ¶
func (m *RemoveParcelRequest) Validate() error
Validate checks the field values on RemoveParcelRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RemoveParcelRequestValidationError ¶
type RemoveParcelRequestValidationError struct {
// contains filtered or unexported fields
}
RemoveParcelRequestValidationError is the validation error returned by RemoveParcelRequest.Validate if the designated constraints aren't met.
func (RemoveParcelRequestValidationError) Cause ¶
func (e RemoveParcelRequestValidationError) Cause() error
Cause function returns cause value.
func (RemoveParcelRequestValidationError) Error ¶
func (e RemoveParcelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveParcelRequestValidationError) ErrorName ¶
func (e RemoveParcelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveParcelRequestValidationError) Field ¶
func (e RemoveParcelRequestValidationError) Field() string
Field function returns field value.
func (RemoveParcelRequestValidationError) Key ¶
func (e RemoveParcelRequestValidationError) Key() bool
Key function returns key value.
func (RemoveParcelRequestValidationError) Reason ¶
func (e RemoveParcelRequestValidationError) Reason() string
Reason function returns reason value.
type RemoveParcelResponse ¶
type RemoveParcelResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*RemoveParcelResponse) Descriptor
deprecated
func (*RemoveParcelResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveParcelResponse.ProtoReflect.Descriptor instead.
func (*RemoveParcelResponse) GetSuccess ¶
func (x *RemoveParcelResponse) GetSuccess() bool
func (*RemoveParcelResponse) ProtoMessage ¶
func (*RemoveParcelResponse) ProtoMessage()
func (*RemoveParcelResponse) ProtoReflect ¶
func (x *RemoveParcelResponse) ProtoReflect() protoreflect.Message
func (*RemoveParcelResponse) Reset ¶
func (x *RemoveParcelResponse) Reset()
func (*RemoveParcelResponse) String ¶
func (x *RemoveParcelResponse) String() string
func (*RemoveParcelResponse) Validate ¶
func (m *RemoveParcelResponse) Validate() error
Validate checks the field values on RemoveParcelResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RemoveParcelResponseValidationError ¶
type RemoveParcelResponseValidationError struct {
// contains filtered or unexported fields
}
RemoveParcelResponseValidationError is the validation error returned by RemoveParcelResponse.Validate if the designated constraints aren't met.
func (RemoveParcelResponseValidationError) Cause ¶
func (e RemoveParcelResponseValidationError) Cause() error
Cause function returns cause value.
func (RemoveParcelResponseValidationError) Error ¶
func (e RemoveParcelResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RemoveParcelResponseValidationError) ErrorName ¶
func (e RemoveParcelResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RemoveParcelResponseValidationError) Field ¶
func (e RemoveParcelResponseValidationError) Field() string
Field function returns field value.
func (RemoveParcelResponseValidationError) Key ¶
func (e RemoveParcelResponseValidationError) Key() bool
Key function returns key value.
func (RemoveParcelResponseValidationError) Reason ¶
func (e RemoveParcelResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedLogisticParcelApiServiceServer ¶
type UnimplementedLogisticParcelApiServiceServer struct { }
UnimplementedLogisticParcelApiServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLogisticParcelApiServiceServer) CreateParcel ¶
func (UnimplementedLogisticParcelApiServiceServer) CreateParcel(context.Context, *CreateParcelRequest) (*CreateParcelResponse, error)
func (UnimplementedLogisticParcelApiServiceServer) DescribeParcel ¶
func (UnimplementedLogisticParcelApiServiceServer) DescribeParcel(context.Context, *DescribeParcelRequest) (*DescribeParcelResponse, error)
func (UnimplementedLogisticParcelApiServiceServer) DescribeParcelV1 ¶
func (UnimplementedLogisticParcelApiServiceServer) DescribeParcelV1(context.Context, *DescribeParcelV1Request) (*DescribeParcelV1Response, error)
func (UnimplementedLogisticParcelApiServiceServer) ListParcels ¶
func (UnimplementedLogisticParcelApiServiceServer) ListParcels(context.Context, *ListParcelsRequest) (*ListParcelsResponse, error)
func (UnimplementedLogisticParcelApiServiceServer) RemoveParcel ¶
func (UnimplementedLogisticParcelApiServiceServer) RemoveParcel(context.Context, *RemoveParcelRequest) (*RemoveParcelResponse, error)
type UnsafeLogisticParcelApiServiceServer ¶
type UnsafeLogisticParcelApiServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogisticParcelApiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogisticParcelApiServiceServer will result in compilation errors.