logistic_package_api_v1

package module
v0.0.0-...-6d99c5e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package logistic_package_api_v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	LogisticPackageApiService_CreateV1_FullMethodName = "/logistic_package_api.v1.LogisticPackageApiService/CreateV1"
	LogisticPackageApiService_DeleteV1_FullMethodName = "/logistic_package_api.v1.LogisticPackageApiService/DeleteV1"
	LogisticPackageApiService_GetV1_FullMethodName    = "/logistic_package_api.v1.LogisticPackageApiService/GetV1"
	LogisticPackageApiService_ListV1_FullMethodName   = "/logistic_package_api.v1.LogisticPackageApiService/ListV1"
	LogisticPackageApiService_UpdateV1_FullMethodName = "/logistic_package_api.v1.LogisticPackageApiService/UpdateV1"
)

Variables

View Source
var File_logistic_package_api_proto protoreflect.FileDescriptor
View Source
var LogisticPackageApiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "logistic_package_api.v1.LogisticPackageApiService",
	HandlerType: (*LogisticPackageApiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateV1",
			Handler:    _LogisticPackageApiService_CreateV1_Handler,
		},
		{
			MethodName: "DeleteV1",
			Handler:    _LogisticPackageApiService_DeleteV1_Handler,
		},
		{
			MethodName: "GetV1",
			Handler:    _LogisticPackageApiService_GetV1_Handler,
		},
		{
			MethodName: "ListV1",
			Handler:    _LogisticPackageApiService_ListV1_Handler,
		},
		{
			MethodName: "UpdateV1",
			Handler:    _LogisticPackageApiService_UpdateV1_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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 CreateRequestV1

type CreateRequestV1 struct {
	Value *Package `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequestV1) Descriptor deprecated

func (*CreateRequestV1) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequestV1.ProtoReflect.Descriptor instead.

func (*CreateRequestV1) GetValue

func (x *CreateRequestV1) GetValue() *Package

func (*CreateRequestV1) ProtoMessage

func (*CreateRequestV1) ProtoMessage()

func (*CreateRequestV1) ProtoReflect

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

func (*CreateRequestV1) Reset

func (x *CreateRequestV1) Reset()

func (*CreateRequestV1) String

func (x *CreateRequestV1) String() string

func (*CreateRequestV1) Validate

func (m *CreateRequestV1) Validate() error

Validate checks the field values on CreateRequestV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRequestV1) ValidateAll

func (m *CreateRequestV1) ValidateAll() error

ValidateAll checks the field values on CreateRequestV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRequestV1MultiError, or nil if none found.

type CreateRequestV1MultiError

type CreateRequestV1MultiError []error

CreateRequestV1MultiError is an error wrapping multiple validation errors returned by CreateRequestV1.ValidateAll() if the designated constraints aren't met.

func (CreateRequestV1MultiError) AllErrors

func (m CreateRequestV1MultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRequestV1MultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRequestV1ValidationError

type CreateRequestV1ValidationError struct {
	// contains filtered or unexported fields
}

CreateRequestV1ValidationError is the validation error returned by CreateRequestV1.Validate if the designated constraints aren't met.

func (CreateRequestV1ValidationError) Cause

Cause function returns cause value.

func (CreateRequestV1ValidationError) Error

Error satisfies the builtin error interface

func (CreateRequestV1ValidationError) ErrorName

func (e CreateRequestV1ValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRequestV1ValidationError) Field

Field function returns field value.

func (CreateRequestV1ValidationError) Key

Key function returns key value.

func (CreateRequestV1ValidationError) Reason

Reason function returns reason value.

type CreateResponseV1

type CreateResponseV1 struct {
	PackageId uint64 `protobuf:"varint,1,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponseV1) Descriptor deprecated

func (*CreateResponseV1) Descriptor() ([]byte, []int)

Deprecated: Use CreateResponseV1.ProtoReflect.Descriptor instead.

func (*CreateResponseV1) GetPackageId

func (x *CreateResponseV1) GetPackageId() uint64

func (*CreateResponseV1) ProtoMessage

func (*CreateResponseV1) ProtoMessage()

func (*CreateResponseV1) ProtoReflect

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

func (*CreateResponseV1) Reset

func (x *CreateResponseV1) Reset()

func (*CreateResponseV1) String

func (x *CreateResponseV1) String() string

func (*CreateResponseV1) Validate

func (m *CreateResponseV1) Validate() error

Validate checks the field values on CreateResponseV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateResponseV1) ValidateAll

func (m *CreateResponseV1) ValidateAll() error

ValidateAll checks the field values on CreateResponseV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateResponseV1MultiError, or nil if none found.

type CreateResponseV1MultiError

type CreateResponseV1MultiError []error

CreateResponseV1MultiError is an error wrapping multiple validation errors returned by CreateResponseV1.ValidateAll() if the designated constraints aren't met.

func (CreateResponseV1MultiError) AllErrors

func (m CreateResponseV1MultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateResponseV1MultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateResponseV1ValidationError

type CreateResponseV1ValidationError struct {
	// contains filtered or unexported fields
}

CreateResponseV1ValidationError is the validation error returned by CreateResponseV1.Validate if the designated constraints aren't met.

func (CreateResponseV1ValidationError) Cause

Cause function returns cause value.

func (CreateResponseV1ValidationError) Error

Error satisfies the builtin error interface

func (CreateResponseV1ValidationError) ErrorName

ErrorName returns error name.

func (CreateResponseV1ValidationError) Field

Field function returns field value.

func (CreateResponseV1ValidationError) Key

Key function returns key value.

func (CreateResponseV1ValidationError) Reason

Reason function returns reason value.

type DeleteV1Request

type DeleteV1Request struct {
	PackageId uint64 `protobuf:"varint,1,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteV1Request) Descriptor deprecated

func (*DeleteV1Request) Descriptor() ([]byte, []int)

Deprecated: Use DeleteV1Request.ProtoReflect.Descriptor instead.

func (*DeleteV1Request) GetPackageId

func (x *DeleteV1Request) GetPackageId() uint64

func (*DeleteV1Request) ProtoMessage

func (*DeleteV1Request) ProtoMessage()

func (*DeleteV1Request) ProtoReflect

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

func (*DeleteV1Request) Reset

func (x *DeleteV1Request) Reset()

func (*DeleteV1Request) String

func (x *DeleteV1Request) String() string

func (*DeleteV1Request) Validate

func (m *DeleteV1Request) Validate() error

Validate checks the field values on DeleteV1Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteV1Request) ValidateAll

func (m *DeleteV1Request) ValidateAll() error

ValidateAll checks the field values on DeleteV1Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteV1RequestMultiError, or nil if none found.

type DeleteV1RequestMultiError

type DeleteV1RequestMultiError []error

DeleteV1RequestMultiError is an error wrapping multiple validation errors returned by DeleteV1Request.ValidateAll() if the designated constraints aren't met.

func (DeleteV1RequestMultiError) AllErrors

func (m DeleteV1RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteV1RequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteV1RequestValidationError

type DeleteV1RequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteV1RequestValidationError is the validation error returned by DeleteV1Request.Validate if the designated constraints aren't met.

func (DeleteV1RequestValidationError) Cause

Cause function returns cause value.

func (DeleteV1RequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteV1RequestValidationError) ErrorName

func (e DeleteV1RequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteV1RequestValidationError) Field

Field function returns field value.

func (DeleteV1RequestValidationError) Key

Key function returns key value.

func (DeleteV1RequestValidationError) Reason

Reason function returns reason value.

type DeleteV1Response

type DeleteV1Response struct {
	// contains filtered or unexported fields
}

func (*DeleteV1Response) Descriptor deprecated

func (*DeleteV1Response) Descriptor() ([]byte, []int)

Deprecated: Use DeleteV1Response.ProtoReflect.Descriptor instead.

func (*DeleteV1Response) ProtoMessage

func (*DeleteV1Response) ProtoMessage()

func (*DeleteV1Response) ProtoReflect

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

func (*DeleteV1Response) Reset

func (x *DeleteV1Response) Reset()

func (*DeleteV1Response) String

func (x *DeleteV1Response) String() string

func (*DeleteV1Response) Validate

func (m *DeleteV1Response) Validate() error

Validate checks the field values on DeleteV1Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteV1Response) ValidateAll

func (m *DeleteV1Response) ValidateAll() error

ValidateAll checks the field values on DeleteV1Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteV1ResponseMultiError, or nil if none found.

type DeleteV1ResponseMultiError

type DeleteV1ResponseMultiError []error

DeleteV1ResponseMultiError is an error wrapping multiple validation errors returned by DeleteV1Response.ValidateAll() if the designated constraints aren't met.

func (DeleteV1ResponseMultiError) AllErrors

func (m DeleteV1ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteV1ResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteV1ResponseValidationError

type DeleteV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteV1ResponseValidationError is the validation error returned by DeleteV1Response.Validate if the designated constraints aren't met.

func (DeleteV1ResponseValidationError) Cause

Cause function returns cause value.

func (DeleteV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteV1ResponseValidationError) Field

Field function returns field value.

func (DeleteV1ResponseValidationError) Key

Key function returns key value.

func (DeleteV1ResponseValidationError) Reason

Reason function returns reason value.

type GetV1Request

type GetV1Request struct {
	PackageId uint64 `protobuf:"varint,1,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetV1Request) Descriptor deprecated

func (*GetV1Request) Descriptor() ([]byte, []int)

Deprecated: Use GetV1Request.ProtoReflect.Descriptor instead.

func (*GetV1Request) GetPackageId

func (x *GetV1Request) GetPackageId() uint64

func (*GetV1Request) ProtoMessage

func (*GetV1Request) ProtoMessage()

func (*GetV1Request) ProtoReflect

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

func (*GetV1Request) Reset

func (x *GetV1Request) Reset()

func (*GetV1Request) String

func (x *GetV1Request) String() string

func (*GetV1Request) Validate

func (m *GetV1Request) Validate() error

Validate checks the field values on GetV1Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetV1Request) ValidateAll

func (m *GetV1Request) ValidateAll() error

ValidateAll checks the field values on GetV1Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetV1RequestMultiError, or nil if none found.

type GetV1RequestMultiError

type GetV1RequestMultiError []error

GetV1RequestMultiError is an error wrapping multiple validation errors returned by GetV1Request.ValidateAll() if the designated constraints aren't met.

func (GetV1RequestMultiError) AllErrors

func (m GetV1RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetV1RequestMultiError) Error

func (m GetV1RequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetV1RequestValidationError

type GetV1RequestValidationError struct {
	// contains filtered or unexported fields
}

GetV1RequestValidationError is the validation error returned by GetV1Request.Validate if the designated constraints aren't met.

func (GetV1RequestValidationError) Cause

Cause function returns cause value.

func (GetV1RequestValidationError) Error

Error satisfies the builtin error interface

func (GetV1RequestValidationError) ErrorName

func (e GetV1RequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetV1RequestValidationError) Field

Field function returns field value.

func (GetV1RequestValidationError) Key

Key function returns key value.

func (GetV1RequestValidationError) Reason

Reason function returns reason value.

type GetV1Response

type GetV1Response struct {
	Value *Package `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetV1Response) Descriptor deprecated

func (*GetV1Response) Descriptor() ([]byte, []int)

Deprecated: Use GetV1Response.ProtoReflect.Descriptor instead.

func (*GetV1Response) GetValue

func (x *GetV1Response) GetValue() *Package

func (*GetV1Response) ProtoMessage

func (*GetV1Response) ProtoMessage()

func (*GetV1Response) ProtoReflect

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

func (*GetV1Response) Reset

func (x *GetV1Response) Reset()

func (*GetV1Response) String

func (x *GetV1Response) String() string

func (*GetV1Response) Validate

func (m *GetV1Response) Validate() error

Validate checks the field values on GetV1Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetV1Response) ValidateAll

func (m *GetV1Response) ValidateAll() error

ValidateAll checks the field values on GetV1Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetV1ResponseMultiError, or nil if none found.

type GetV1ResponseMultiError

type GetV1ResponseMultiError []error

GetV1ResponseMultiError is an error wrapping multiple validation errors returned by GetV1Response.ValidateAll() if the designated constraints aren't met.

func (GetV1ResponseMultiError) AllErrors

func (m GetV1ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetV1ResponseMultiError) Error

func (m GetV1ResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetV1ResponseValidationError

type GetV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

GetV1ResponseValidationError is the validation error returned by GetV1Response.Validate if the designated constraints aren't met.

func (GetV1ResponseValidationError) Cause

Cause function returns cause value.

func (GetV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (GetV1ResponseValidationError) ErrorName

func (e GetV1ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetV1ResponseValidationError) Field

Field function returns field value.

func (GetV1ResponseValidationError) Key

Key function returns key value.

func (GetV1ResponseValidationError) Reason

Reason function returns reason value.

type ListV1Request

type ListV1Request 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 (*ListV1Request) Descriptor deprecated

func (*ListV1Request) Descriptor() ([]byte, []int)

Deprecated: Use ListV1Request.ProtoReflect.Descriptor instead.

func (*ListV1Request) GetLimit

func (x *ListV1Request) GetLimit() uint64

func (*ListV1Request) GetOffset

func (x *ListV1Request) GetOffset() uint64

func (*ListV1Request) ProtoMessage

func (*ListV1Request) ProtoMessage()

func (*ListV1Request) ProtoReflect

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

func (*ListV1Request) Reset

func (x *ListV1Request) Reset()

func (*ListV1Request) String

func (x *ListV1Request) String() string

func (*ListV1Request) Validate

func (m *ListV1Request) Validate() error

Validate checks the field values on ListV1Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListV1Request) ValidateAll

func (m *ListV1Request) ValidateAll() error

ValidateAll checks the field values on ListV1Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListV1RequestMultiError, or nil if none found.

type ListV1RequestMultiError

type ListV1RequestMultiError []error

ListV1RequestMultiError is an error wrapping multiple validation errors returned by ListV1Request.ValidateAll() if the designated constraints aren't met.

func (ListV1RequestMultiError) AllErrors

func (m ListV1RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListV1RequestMultiError) Error

func (m ListV1RequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListV1RequestValidationError

type ListV1RequestValidationError struct {
	// contains filtered or unexported fields
}

ListV1RequestValidationError is the validation error returned by ListV1Request.Validate if the designated constraints aren't met.

func (ListV1RequestValidationError) Cause

Cause function returns cause value.

func (ListV1RequestValidationError) Error

Error satisfies the builtin error interface

func (ListV1RequestValidationError) ErrorName

func (e ListV1RequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListV1RequestValidationError) Field

Field function returns field value.

func (ListV1RequestValidationError) Key

Key function returns key value.

func (ListV1RequestValidationError) Reason

Reason function returns reason value.

type ListV1Response

type ListV1Response struct {
	Packages []*Package `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*ListV1Response) Descriptor deprecated

func (*ListV1Response) Descriptor() ([]byte, []int)

Deprecated: Use ListV1Response.ProtoReflect.Descriptor instead.

func (*ListV1Response) GetPackages

func (x *ListV1Response) GetPackages() []*Package

func (*ListV1Response) ProtoMessage

func (*ListV1Response) ProtoMessage()

func (*ListV1Response) ProtoReflect

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

func (*ListV1Response) Reset

func (x *ListV1Response) Reset()

func (*ListV1Response) String

func (x *ListV1Response) String() string

func (*ListV1Response) Validate

func (m *ListV1Response) Validate() error

Validate checks the field values on ListV1Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListV1Response) ValidateAll

func (m *ListV1Response) ValidateAll() error

ValidateAll checks the field values on ListV1Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListV1ResponseMultiError, or nil if none found.

type ListV1ResponseMultiError

type ListV1ResponseMultiError []error

ListV1ResponseMultiError is an error wrapping multiple validation errors returned by ListV1Response.ValidateAll() if the designated constraints aren't met.

func (ListV1ResponseMultiError) AllErrors

func (m ListV1ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListV1ResponseMultiError) Error

func (m ListV1ResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListV1ResponseValidationError

type ListV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

ListV1ResponseValidationError is the validation error returned by ListV1Response.Validate if the designated constraints aren't met.

func (ListV1ResponseValidationError) Cause

Cause function returns cause value.

func (ListV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (ListV1ResponseValidationError) ErrorName

func (e ListV1ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListV1ResponseValidationError) Field

Field function returns field value.

func (ListV1ResponseValidationError) Key

Key function returns key value.

func (ListV1ResponseValidationError) Reason

Reason function returns reason value.

type LogisticPackageApiServiceClient

type LogisticPackageApiServiceClient interface {
	CreateV1(ctx context.Context, in *CreateRequestV1, opts ...grpc.CallOption) (*CreateResponseV1, error)
	DeleteV1(ctx context.Context, in *DeleteV1Request, opts ...grpc.CallOption) (*DeleteV1Response, error)
	GetV1(ctx context.Context, in *GetV1Request, opts ...grpc.CallOption) (*GetV1Response, error)
	ListV1(ctx context.Context, in *ListV1Request, opts ...grpc.CallOption) (*ListV1Response, error)
	UpdateV1(ctx context.Context, in *UpdateV1Request, opts ...grpc.CallOption) (*UpdateV1Response, 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.

type LogisticPackageApiServiceServer

type LogisticPackageApiServiceServer interface {
	CreateV1(context.Context, *CreateRequestV1) (*CreateResponseV1, error)
	DeleteV1(context.Context, *DeleteV1Request) (*DeleteV1Response, error)
	GetV1(context.Context, *GetV1Request) (*GetV1Response, error)
	ListV1(context.Context, *ListV1Request) (*ListV1Response, error)
	UpdateV1(context.Context, *UpdateV1Request) (*UpdateV1Response, error)
	// contains filtered or unexported methods
}

LogisticPackageApiServiceServer is the server API for LogisticPackageApiService service. All implementations must embed UnimplementedLogisticPackageApiServiceServer for forward compatibility

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"`
	Weight  *uint64                `protobuf:"varint,3,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	Updated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated,proto3,oneof" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

func (*Package) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetCreated

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

func (*Package) GetId

func (x *Package) GetId() uint64

func (*Package) GetTitle

func (x *Package) GetTitle() string

func (*Package) GetUpdated

func (x *Package) GetUpdated() *timestamppb.Timestamp

func (*Package) GetWeight

func (x *Package) GetWeight() uint64

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

func (*Package) Validate

func (m *Package) Validate() error

Validate checks the field values on Package with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Package) ValidateAll

func (m *Package) ValidateAll() error

ValidateAll checks the field values on Package with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PackageMultiError, or nil if none found.

type PackageMultiError

type PackageMultiError []error

PackageMultiError is an error wrapping multiple validation errors returned by Package.ValidateAll() if the designated constraints aren't met.

func (PackageMultiError) AllErrors

func (m PackageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PackageMultiError) Error

func (m PackageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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 UnimplementedLogisticPackageApiServiceServer

type UnimplementedLogisticPackageApiServiceServer struct {
}

UnimplementedLogisticPackageApiServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLogisticPackageApiServiceServer) CreateV1

func (UnimplementedLogisticPackageApiServiceServer) DeleteV1

func (UnimplementedLogisticPackageApiServiceServer) GetV1

func (UnimplementedLogisticPackageApiServiceServer) ListV1

func (UnimplementedLogisticPackageApiServiceServer) UpdateV1

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 UpdateV1Request

type UpdateV1Request struct {
	Value *Package `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateV1Request) Descriptor deprecated

func (*UpdateV1Request) Descriptor() ([]byte, []int)

Deprecated: Use UpdateV1Request.ProtoReflect.Descriptor instead.

func (*UpdateV1Request) GetValue

func (x *UpdateV1Request) GetValue() *Package

func (*UpdateV1Request) ProtoMessage

func (*UpdateV1Request) ProtoMessage()

func (*UpdateV1Request) ProtoReflect

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

func (*UpdateV1Request) Reset

func (x *UpdateV1Request) Reset()

func (*UpdateV1Request) String

func (x *UpdateV1Request) String() string

func (*UpdateV1Request) Validate

func (m *UpdateV1Request) Validate() error

Validate checks the field values on UpdateV1Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateV1Request) ValidateAll

func (m *UpdateV1Request) ValidateAll() error

ValidateAll checks the field values on UpdateV1Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateV1RequestMultiError, or nil if none found.

type UpdateV1RequestMultiError

type UpdateV1RequestMultiError []error

UpdateV1RequestMultiError is an error wrapping multiple validation errors returned by UpdateV1Request.ValidateAll() if the designated constraints aren't met.

func (UpdateV1RequestMultiError) AllErrors

func (m UpdateV1RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateV1RequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateV1RequestValidationError

type UpdateV1RequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateV1RequestValidationError is the validation error returned by UpdateV1Request.Validate if the designated constraints aren't met.

func (UpdateV1RequestValidationError) Cause

Cause function returns cause value.

func (UpdateV1RequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateV1RequestValidationError) ErrorName

func (e UpdateV1RequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateV1RequestValidationError) Field

Field function returns field value.

func (UpdateV1RequestValidationError) Key

Key function returns key value.

func (UpdateV1RequestValidationError) Reason

Reason function returns reason value.

type UpdateV1Response

type UpdateV1Response struct {
	// contains filtered or unexported fields
}

func (*UpdateV1Response) Descriptor deprecated

func (*UpdateV1Response) Descriptor() ([]byte, []int)

Deprecated: Use UpdateV1Response.ProtoReflect.Descriptor instead.

func (*UpdateV1Response) ProtoMessage

func (*UpdateV1Response) ProtoMessage()

func (*UpdateV1Response) ProtoReflect

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

func (*UpdateV1Response) Reset

func (x *UpdateV1Response) Reset()

func (*UpdateV1Response) String

func (x *UpdateV1Response) String() string

func (*UpdateV1Response) Validate

func (m *UpdateV1Response) Validate() error

Validate checks the field values on UpdateV1Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateV1Response) ValidateAll

func (m *UpdateV1Response) ValidateAll() error

ValidateAll checks the field values on UpdateV1Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateV1ResponseMultiError, or nil if none found.

type UpdateV1ResponseMultiError

type UpdateV1ResponseMultiError []error

UpdateV1ResponseMultiError is an error wrapping multiple validation errors returned by UpdateV1Response.ValidateAll() if the designated constraints aren't met.

func (UpdateV1ResponseMultiError) AllErrors

func (m UpdateV1ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateV1ResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateV1ResponseValidationError

type UpdateV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateV1ResponseValidationError is the validation error returned by UpdateV1Response.Validate if the designated constraints aren't met.

func (UpdateV1ResponseValidationError) Cause

Cause function returns cause value.

func (UpdateV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateV1ResponseValidationError) Field

Field function returns field value.

func (UpdateV1ResponseValidationError) Key

Key function returns key value.

func (UpdateV1ResponseValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
github.com
google
api
protobuf
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
google.golang.org

Jump to

Keyboard shortcuts

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