logistic_parcel_api

package module
v0.0.0-...-787b776 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package logistic_parcel_api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_gempellm_logistic_parcel_api_v1_logistic_parcel_api_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (CreateParcelRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateParcelRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateParcelRequestValidationError) Field

Field function returns field value.

func (CreateParcelRequestValidationError) Key

Key function returns key value.

func (CreateParcelRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateParcelResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateParcelResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateParcelResponseValidationError) Field

Field function returns field value.

func (CreateParcelResponseValidationError) Key

Key function returns key value.

func (CreateParcelResponseValidationError) Reason

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

Cause function returns cause value.

func (DescribeParcelRequestValidationError) Error

Error satisfies the builtin error interface

func (DescribeParcelRequestValidationError) ErrorName

ErrorName returns error name.

func (DescribeParcelRequestValidationError) Field

Field function returns field value.

func (DescribeParcelRequestValidationError) Key

Key function returns key value.

func (DescribeParcelRequestValidationError) Reason

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

Cause function returns cause value.

func (DescribeParcelResponseValidationError) Error

Error satisfies the builtin error interface

func (DescribeParcelResponseValidationError) ErrorName

ErrorName returns error name.

func (DescribeParcelResponseValidationError) Field

Field function returns field value.

func (DescribeParcelResponseValidationError) Key

Key function returns key value.

func (DescribeParcelResponseValidationError) Reason

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

Cause function returns cause value.

func (DescribeParcelV1RequestValidationError) Error

Error satisfies the builtin error interface

func (DescribeParcelV1RequestValidationError) ErrorName

ErrorName returns error name.

func (DescribeParcelV1RequestValidationError) Field

Field function returns field value.

func (DescribeParcelV1RequestValidationError) Key

Key function returns key value.

func (DescribeParcelV1RequestValidationError) Reason

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

Cause function returns cause value.

func (DescribeParcelV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (DescribeParcelV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (DescribeParcelV1ResponseValidationError) Field

Field function returns field value.

func (DescribeParcelV1ResponseValidationError) Key

Key function returns key value.

func (DescribeParcelV1ResponseValidationError) Reason

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

Cause function returns cause value.

func (ListParcelsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListParcelsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListParcelsRequestValidationError) Field

Field function returns field value.

func (ListParcelsRequestValidationError) Key

Key function returns key value.

func (ListParcelsRequestValidationError) Reason

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

Cause function returns cause value.

func (ListParcelsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListParcelsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListParcelsResponseValidationError) Field

Field function returns field value.

func (ListParcelsResponseValidationError) Key

Key function returns key value.

func (ListParcelsResponseValidationError) Reason

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.

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

Deprecated: Use Parcel.ProtoReflect.Descriptor instead.

func (*Parcel) GetCreated

func (x *Parcel) GetCreated() *timestamppb.Timestamp

func (*Parcel) GetId

func (x *Parcel) GetId() uint64

func (*Parcel) GetName

func (x *Parcel) GetName() string

func (*Parcel) ProtoMessage

func (*Parcel) ProtoMessage()

func (*Parcel) ProtoReflect

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

func (*Parcel) Reset

func (x *Parcel) Reset()

func (*Parcel) String

func (x *Parcel) String() string

func (*Parcel) Validate

func (m *Parcel) Validate() error

Validate checks the field values on Parcel with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (RemoveParcelRequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveParcelRequestValidationError) ErrorName

ErrorName returns error name.

func (RemoveParcelRequestValidationError) Field

Field function returns field value.

func (RemoveParcelRequestValidationError) Key

Key function returns key value.

func (RemoveParcelRequestValidationError) Reason

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

Cause function returns cause value.

func (RemoveParcelResponseValidationError) Error

Error satisfies the builtin error interface

func (RemoveParcelResponseValidationError) ErrorName

ErrorName returns error name.

func (RemoveParcelResponseValidationError) Field

Field function returns field value.

func (RemoveParcelResponseValidationError) Key

Key function returns key value.

func (RemoveParcelResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedLogisticParcelApiServiceServer

type UnimplementedLogisticParcelApiServiceServer struct {
}

UnimplementedLogisticParcelApiServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLogisticParcelApiServiceServer) CreateParcel

func (UnimplementedLogisticParcelApiServiceServer) DescribeParcel

func (UnimplementedLogisticParcelApiServiceServer) DescribeParcelV1

func (UnimplementedLogisticParcelApiServiceServer) ListParcels

func (UnimplementedLogisticParcelApiServiceServer) RemoveParcel

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.

Jump to

Keyboard shortcuts

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