logistic_package_api

package module
v0.0.0-...-ecf4119 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package logistic_package_api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_hablof_logistic_package_api_v1_logistic_package_api_proto protoreflect.FileDescriptor
View Source
var LogisticPackageApiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hablof.logistic_package_api.v1.LogisticPackageApiService",
	HandlerType: (*LogisticPackageApiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePackageV1",
			Handler:    _LogisticPackageApiService_CreatePackageV1_Handler,
		},
		{
			MethodName: "DescribePackageV1",
			Handler:    _LogisticPackageApiService_DescribePackageV1_Handler,
		},
		{
			MethodName: "ListPackagesV1",
			Handler:    _LogisticPackageApiService_ListPackagesV1_Handler,
		},
		{
			MethodName: "RemovePackageV1",
			Handler:    _LogisticPackageApiService_RemovePackageV1_Handler,
		},
		{
			MethodName: "UpdatePackageV1",
			Handler:    _LogisticPackageApiService_UpdatePackageV1_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hablof/logistic_package_api/v1/logistic_package_api.proto",
}

LogisticPackageApiService_ServiceDesc is the grpc.ServiceDesc for LogisticPackageApiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLogisticPackageApiServiceHandler

func RegisterLogisticPackageApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLogisticPackageApiServiceHandler registers the http handlers for service LogisticPackageApiService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLogisticPackageApiServiceHandlerClient

func RegisterLogisticPackageApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogisticPackageApiServiceClient) error

RegisterLogisticPackageApiServiceHandlerClient registers the http handlers for service LogisticPackageApiService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogisticPackageApiServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogisticPackageApiServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogisticPackageApiServiceClient" to call the correct interceptors.

func RegisterLogisticPackageApiServiceHandlerFromEndpoint

func RegisterLogisticPackageApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLogisticPackageApiServiceHandlerFromEndpoint is same as RegisterLogisticPackageApiServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLogisticPackageApiServiceHandlerServer

func RegisterLogisticPackageApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogisticPackageApiServiceServer) error

RegisterLogisticPackageApiServiceHandlerServer registers the http handlers for service LogisticPackageApiService to "mux". UnaryRPC :call LogisticPackageApiServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLogisticPackageApiServiceHandlerFromEndpoint instead.

func RegisterLogisticPackageApiServiceServer

func RegisterLogisticPackageApiServiceServer(s grpc.ServiceRegistrar, srv LogisticPackageApiServiceServer)

Types

type CreatePackageV1Request

type CreatePackageV1Request struct {
	Title         string  `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`                   // not empty
	Material      string  `protobuf:"bytes,2,opt,name=Material,proto3" json:"Material,omitempty"`             // not empty
	MaximumVolume float32 `protobuf:"fixed32,3,opt,name=MaximumVolume,proto3" json:"MaximumVolume,omitempty"` // not 0
	Reusable      bool    `protobuf:"varint,4,opt,name=Reusable,proto3" json:"Reusable,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePackageV1Request) Descriptor deprecated

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

Deprecated: Use CreatePackageV1Request.ProtoReflect.Descriptor instead.

func (*CreatePackageV1Request) GetMaterial

func (x *CreatePackageV1Request) GetMaterial() string

func (*CreatePackageV1Request) GetMaximumVolume

func (x *CreatePackageV1Request) GetMaximumVolume() float32

func (*CreatePackageV1Request) GetReusable

func (x *CreatePackageV1Request) GetReusable() bool

func (*CreatePackageV1Request) GetTitle

func (x *CreatePackageV1Request) GetTitle() string

func (*CreatePackageV1Request) ProtoMessage

func (*CreatePackageV1Request) ProtoMessage()

func (*CreatePackageV1Request) ProtoReflect

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

func (*CreatePackageV1Request) Reset

func (x *CreatePackageV1Request) Reset()

func (*CreatePackageV1Request) String

func (x *CreatePackageV1Request) String() string

func (*CreatePackageV1Request) Validate

func (m *CreatePackageV1Request) Validate() error

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

type CreatePackageV1RequestValidationError

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

CreatePackageV1RequestValidationError is the validation error returned by CreatePackageV1Request.Validate if the designated constraints aren't met.

func (CreatePackageV1RequestValidationError) Cause

Cause function returns cause value.

func (CreatePackageV1RequestValidationError) Error

Error satisfies the builtin error interface

func (CreatePackageV1RequestValidationError) ErrorName

ErrorName returns error name.

func (CreatePackageV1RequestValidationError) Field

Field function returns field value.

func (CreatePackageV1RequestValidationError) Key

Key function returns key value.

func (CreatePackageV1RequestValidationError) Reason

Reason function returns reason value.

type CreatePackageV1Response

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

func (*CreatePackageV1Response) Descriptor deprecated

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

Deprecated: Use CreatePackageV1Response.ProtoReflect.Descriptor instead.

func (*CreatePackageV1Response) GetID

func (x *CreatePackageV1Response) GetID() uint64

func (*CreatePackageV1Response) ProtoMessage

func (*CreatePackageV1Response) ProtoMessage()

func (*CreatePackageV1Response) ProtoReflect

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

func (*CreatePackageV1Response) Reset

func (x *CreatePackageV1Response) Reset()

func (*CreatePackageV1Response) String

func (x *CreatePackageV1Response) String() string

func (*CreatePackageV1Response) Validate

func (m *CreatePackageV1Response) Validate() error

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

type CreatePackageV1ResponseValidationError

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

CreatePackageV1ResponseValidationError is the validation error returned by CreatePackageV1Response.Validate if the designated constraints aren't met.

func (CreatePackageV1ResponseValidationError) Cause

Cause function returns cause value.

func (CreatePackageV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (CreatePackageV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (CreatePackageV1ResponseValidationError) Field

Field function returns field value.

func (CreatePackageV1ResponseValidationError) Key

Key function returns key value.

func (CreatePackageV1ResponseValidationError) Reason

Reason function returns reason value.

type DescribePackageV1Request

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

func (*DescribePackageV1Request) Descriptor deprecated

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

Deprecated: Use DescribePackageV1Request.ProtoReflect.Descriptor instead.

func (*DescribePackageV1Request) GetPackageID

func (x *DescribePackageV1Request) GetPackageID() uint64

func (*DescribePackageV1Request) ProtoMessage

func (*DescribePackageV1Request) ProtoMessage()

func (*DescribePackageV1Request) ProtoReflect

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

func (*DescribePackageV1Request) Reset

func (x *DescribePackageV1Request) Reset()

func (*DescribePackageV1Request) String

func (x *DescribePackageV1Request) String() string

func (*DescribePackageV1Request) Validate

func (m *DescribePackageV1Request) Validate() error

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

type DescribePackageV1RequestValidationError

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

DescribePackageV1RequestValidationError is the validation error returned by DescribePackageV1Request.Validate if the designated constraints aren't met.

func (DescribePackageV1RequestValidationError) Cause

Cause function returns cause value.

func (DescribePackageV1RequestValidationError) Error

Error satisfies the builtin error interface

func (DescribePackageV1RequestValidationError) ErrorName

ErrorName returns error name.

func (DescribePackageV1RequestValidationError) Field

Field function returns field value.

func (DescribePackageV1RequestValidationError) Key

Key function returns key value.

func (DescribePackageV1RequestValidationError) Reason

Reason function returns reason value.

type DescribePackageV1Response

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

func (*DescribePackageV1Response) Descriptor deprecated

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

Deprecated: Use DescribePackageV1Response.ProtoReflect.Descriptor instead.

func (*DescribePackageV1Response) GetValue

func (x *DescribePackageV1Response) GetValue() *Package

func (*DescribePackageV1Response) ProtoMessage

func (*DescribePackageV1Response) ProtoMessage()

func (*DescribePackageV1Response) ProtoReflect

func (*DescribePackageV1Response) Reset

func (x *DescribePackageV1Response) Reset()

func (*DescribePackageV1Response) String

func (x *DescribePackageV1Response) String() string

func (*DescribePackageV1Response) Validate

func (m *DescribePackageV1Response) Validate() error

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

type DescribePackageV1ResponseValidationError

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

DescribePackageV1ResponseValidationError is the validation error returned by DescribePackageV1Response.Validate if the designated constraints aren't met.

func (DescribePackageV1ResponseValidationError) Cause

Cause function returns cause value.

func (DescribePackageV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (DescribePackageV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (DescribePackageV1ResponseValidationError) Field

Field function returns field value.

func (DescribePackageV1ResponseValidationError) Key

Key function returns key value.

func (DescribePackageV1ResponseValidationError) Reason

Reason function returns reason value.

type ListPackagesV1Request

type ListPackagesV1Request struct {
	Offset uint64 `protobuf:"varint,1,opt,name=Offset,proto3" json:"Offset,omitempty"`
	Limit  uint64 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPackagesV1Request) Descriptor deprecated

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

Deprecated: Use ListPackagesV1Request.ProtoReflect.Descriptor instead.

func (*ListPackagesV1Request) GetLimit

func (x *ListPackagesV1Request) GetLimit() uint64

func (*ListPackagesV1Request) GetOffset

func (x *ListPackagesV1Request) GetOffset() uint64

func (*ListPackagesV1Request) ProtoMessage

func (*ListPackagesV1Request) ProtoMessage()

func (*ListPackagesV1Request) ProtoReflect

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

func (*ListPackagesV1Request) Reset

func (x *ListPackagesV1Request) Reset()

func (*ListPackagesV1Request) String

func (x *ListPackagesV1Request) String() string

func (*ListPackagesV1Request) Validate

func (m *ListPackagesV1Request) Validate() error

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

type ListPackagesV1RequestValidationError

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

ListPackagesV1RequestValidationError is the validation error returned by ListPackagesV1Request.Validate if the designated constraints aren't met.

func (ListPackagesV1RequestValidationError) Cause

Cause function returns cause value.

func (ListPackagesV1RequestValidationError) Error

Error satisfies the builtin error interface

func (ListPackagesV1RequestValidationError) ErrorName

ErrorName returns error name.

func (ListPackagesV1RequestValidationError) Field

Field function returns field value.

func (ListPackagesV1RequestValidationError) Key

Key function returns key value.

func (ListPackagesV1RequestValidationError) Reason

Reason function returns reason value.

type ListPackagesV1Response

type ListPackagesV1Response struct {
	PackageTitle []string   `protobuf:"bytes,1,rep,name=PackageTitle,proto3" json:"PackageTitle,omitempty"` // well... not used
	Packages     []*Package `protobuf:"bytes,2,rep,name=Packages,proto3" json:"Packages,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPackagesV1Response) Descriptor deprecated

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

Deprecated: Use ListPackagesV1Response.ProtoReflect.Descriptor instead.

func (*ListPackagesV1Response) GetPackageTitle

func (x *ListPackagesV1Response) GetPackageTitle() []string

func (*ListPackagesV1Response) GetPackages

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

func (*ListPackagesV1Response) ProtoMessage

func (*ListPackagesV1Response) ProtoMessage()

func (*ListPackagesV1Response) ProtoReflect

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

func (*ListPackagesV1Response) Reset

func (x *ListPackagesV1Response) Reset()

func (*ListPackagesV1Response) String

func (x *ListPackagesV1Response) String() string

func (*ListPackagesV1Response) Validate

func (m *ListPackagesV1Response) Validate() error

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

type ListPackagesV1ResponseValidationError

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

ListPackagesV1ResponseValidationError is the validation error returned by ListPackagesV1Response.Validate if the designated constraints aren't met.

func (ListPackagesV1ResponseValidationError) Cause

Cause function returns cause value.

func (ListPackagesV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (ListPackagesV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (ListPackagesV1ResponseValidationError) Field

Field function returns field value.

func (ListPackagesV1ResponseValidationError) Key

Key function returns key value.

func (ListPackagesV1ResponseValidationError) Reason

Reason function returns reason value.

type LogisticPackageApiServiceClient

type LogisticPackageApiServiceClient interface {
	CreatePackageV1(ctx context.Context, in *CreatePackageV1Request, opts ...grpc.CallOption) (*CreatePackageV1Response, error)
	DescribePackageV1(ctx context.Context, in *DescribePackageV1Request, opts ...grpc.CallOption) (*DescribePackageV1Response, error)
	ListPackagesV1(ctx context.Context, in *ListPackagesV1Request, opts ...grpc.CallOption) (*ListPackagesV1Response, error)
	RemovePackageV1(ctx context.Context, in *RemovePackageV1Request, opts ...grpc.CallOption) (*RemovePackageV1Response, error)
	UpdatePackageV1(ctx context.Context, in *UpdatePackageV1Request, opts ...grpc.CallOption) (*UpdatePackageV1Response, error)
}

LogisticPackageApiServiceClient is the client API for LogisticPackageApiService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type LogisticPackageApiServiceServer

type LogisticPackageApiServiceServer interface {
	CreatePackageV1(context.Context, *CreatePackageV1Request) (*CreatePackageV1Response, error)
	DescribePackageV1(context.Context, *DescribePackageV1Request) (*DescribePackageV1Response, error)
	ListPackagesV1(context.Context, *ListPackagesV1Request) (*ListPackagesV1Response, error)
	RemovePackageV1(context.Context, *RemovePackageV1Request) (*RemovePackageV1Response, error)
	UpdatePackageV1(context.Context, *UpdatePackageV1Request) (*UpdatePackageV1Response, error)
	// contains filtered or unexported methods
}

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

type MaybeBool

type MaybeBool struct {
	Reusable bool `protobuf:"varint,1,opt,name=Reusable,proto3" json:"Reusable,omitempty"`
	// contains filtered or unexported fields
}

func (*MaybeBool) Descriptor deprecated

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

Deprecated: Use MaybeBool.ProtoReflect.Descriptor instead.

func (*MaybeBool) GetReusable

func (x *MaybeBool) GetReusable() bool

func (*MaybeBool) ProtoMessage

func (*MaybeBool) ProtoMessage()

func (*MaybeBool) ProtoReflect

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

func (*MaybeBool) Reset

func (x *MaybeBool) Reset()

func (*MaybeBool) String

func (x *MaybeBool) String() string

func (*MaybeBool) Validate

func (m *MaybeBool) Validate() error

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

type MaybeBoolValidationError

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

MaybeBoolValidationError is the validation error returned by MaybeBool.Validate if the designated constraints aren't met.

func (MaybeBoolValidationError) Cause

func (e MaybeBoolValidationError) Cause() error

Cause function returns cause value.

func (MaybeBoolValidationError) Error

func (e MaybeBoolValidationError) Error() string

Error satisfies the builtin error interface

func (MaybeBoolValidationError) ErrorName

func (e MaybeBoolValidationError) ErrorName() string

ErrorName returns error name.

func (MaybeBoolValidationError) Field

func (e MaybeBoolValidationError) Field() string

Field function returns field value.

func (MaybeBoolValidationError) Key

Key function returns key value.

func (MaybeBoolValidationError) Reason

func (e MaybeBoolValidationError) Reason() string

Reason function returns reason value.

type MaybeTimestamp

type MaybeTimestamp struct {
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Time,proto3" json:"Time,omitempty"`
	// contains filtered or unexported fields
}

func (*MaybeTimestamp) Descriptor deprecated

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

Deprecated: Use MaybeTimestamp.ProtoReflect.Descriptor instead.

func (*MaybeTimestamp) GetTime

func (x *MaybeTimestamp) GetTime() *timestamppb.Timestamp

func (*MaybeTimestamp) ProtoMessage

func (*MaybeTimestamp) ProtoMessage()

func (*MaybeTimestamp) ProtoReflect

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

func (*MaybeTimestamp) Reset

func (x *MaybeTimestamp) Reset()

func (*MaybeTimestamp) String

func (x *MaybeTimestamp) String() string

func (*MaybeTimestamp) Validate

func (m *MaybeTimestamp) Validate() error

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

type MaybeTimestampValidationError

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

MaybeTimestampValidationError is the validation error returned by MaybeTimestamp.Validate if the designated constraints aren't met.

func (MaybeTimestampValidationError) Cause

Cause function returns cause value.

func (MaybeTimestampValidationError) Error

Error satisfies the builtin error interface

func (MaybeTimestampValidationError) ErrorName

func (e MaybeTimestampValidationError) ErrorName() string

ErrorName returns error name.

func (MaybeTimestampValidationError) Field

Field function returns field value.

func (MaybeTimestampValidationError) Key

Key function returns key value.

func (MaybeTimestampValidationError) Reason

Reason function returns reason value.

type Package

type Package struct {
	ID            uint64                 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Title         string                 `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Material      string                 `protobuf:"bytes,3,opt,name=Material,proto3" json:"Material,omitempty"`
	MaximumVolume float32                `protobuf:"fixed32,4,opt,name=MaximumVolume,proto3" json:"MaximumVolume,omitempty"` //cm^3
	Reusable      bool                   `protobuf:"varint,5,opt,name=Reusable,proto3" json:"Reusable,omitempty"`
	Created       *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=Created,proto3" json:"Created,omitempty"`
	Updated       *MaybeTimestamp        `protobuf:"bytes,7,opt,name=Updated,proto3" json:"Updated,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

func (*Package) 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) GetMaterial

func (x *Package) GetMaterial() string

func (*Package) GetMaximumVolume

func (x *Package) GetMaximumVolume() float32

func (*Package) GetReusable

func (x *Package) GetReusable() bool

func (*Package) GetTitle

func (x *Package) GetTitle() string

func (*Package) GetUpdated

func (x *Package) GetUpdated() *MaybeTimestamp

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, an error is returned.

type PackageValidationError

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

PackageValidationError is the validation error returned by Package.Validate if the designated constraints aren't met.

func (PackageValidationError) Cause

func (e PackageValidationError) Cause() error

Cause function returns cause value.

func (PackageValidationError) Error

func (e PackageValidationError) Error() string

Error satisfies the builtin error interface

func (PackageValidationError) ErrorName

func (e PackageValidationError) ErrorName() string

ErrorName returns error name.

func (PackageValidationError) Field

func (e PackageValidationError) Field() string

Field function returns field value.

func (PackageValidationError) Key

func (e PackageValidationError) Key() bool

Key function returns key value.

func (PackageValidationError) Reason

func (e PackageValidationError) Reason() string

Reason function returns reason value.

type RemovePackageV1Request

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

func (*RemovePackageV1Request) Descriptor deprecated

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

Deprecated: Use RemovePackageV1Request.ProtoReflect.Descriptor instead.

func (*RemovePackageV1Request) GetPackageID

func (x *RemovePackageV1Request) GetPackageID() uint64

func (*RemovePackageV1Request) ProtoMessage

func (*RemovePackageV1Request) ProtoMessage()

func (*RemovePackageV1Request) ProtoReflect

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

func (*RemovePackageV1Request) Reset

func (x *RemovePackageV1Request) Reset()

func (*RemovePackageV1Request) String

func (x *RemovePackageV1Request) String() string

func (*RemovePackageV1Request) Validate

func (m *RemovePackageV1Request) Validate() error

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

type RemovePackageV1RequestValidationError

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

RemovePackageV1RequestValidationError is the validation error returned by RemovePackageV1Request.Validate if the designated constraints aren't met.

func (RemovePackageV1RequestValidationError) Cause

Cause function returns cause value.

func (RemovePackageV1RequestValidationError) Error

Error satisfies the builtin error interface

func (RemovePackageV1RequestValidationError) ErrorName

ErrorName returns error name.

func (RemovePackageV1RequestValidationError) Field

Field function returns field value.

func (RemovePackageV1RequestValidationError) Key

Key function returns key value.

func (RemovePackageV1RequestValidationError) Reason

Reason function returns reason value.

type RemovePackageV1Response

type RemovePackageV1Response struct {
	Suc bool `protobuf:"varint,1,opt,name=Suc,proto3" json:"Suc,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePackageV1Response) Descriptor deprecated

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

Deprecated: Use RemovePackageV1Response.ProtoReflect.Descriptor instead.

func (*RemovePackageV1Response) GetSuc

func (x *RemovePackageV1Response) GetSuc() bool

func (*RemovePackageV1Response) ProtoMessage

func (*RemovePackageV1Response) ProtoMessage()

func (*RemovePackageV1Response) ProtoReflect

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

func (*RemovePackageV1Response) Reset

func (x *RemovePackageV1Response) Reset()

func (*RemovePackageV1Response) String

func (x *RemovePackageV1Response) String() string

func (*RemovePackageV1Response) Validate

func (m *RemovePackageV1Response) Validate() error

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

type RemovePackageV1ResponseValidationError

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

RemovePackageV1ResponseValidationError is the validation error returned by RemovePackageV1Response.Validate if the designated constraints aren't met.

func (RemovePackageV1ResponseValidationError) Cause

Cause function returns cause value.

func (RemovePackageV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (RemovePackageV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (RemovePackageV1ResponseValidationError) Field

Field function returns field value.

func (RemovePackageV1ResponseValidationError) Key

Key function returns key value.

func (RemovePackageV1ResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedLogisticPackageApiServiceServer

type UnimplementedLogisticPackageApiServiceServer struct {
}

UnimplementedLogisticPackageApiServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLogisticPackageApiServiceServer) CreatePackageV1

func (UnimplementedLogisticPackageApiServiceServer) DescribePackageV1

func (UnimplementedLogisticPackageApiServiceServer) ListPackagesV1

func (UnimplementedLogisticPackageApiServiceServer) RemovePackageV1

func (UnimplementedLogisticPackageApiServiceServer) UpdatePackageV1

type UnsafeLogisticPackageApiServiceServer

type UnsafeLogisticPackageApiServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLogisticPackageApiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogisticPackageApiServiceServer will result in compilation errors.

type UpdatePackageV1Request

type UpdatePackageV1Request struct {
	PackageID     uint64     `protobuf:"varint,1,opt,name=PackageID,proto3" json:"PackageID,omitempty"`          // id to update
	Title         string     `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`                   // zero val == empty
	Material      string     `protobuf:"bytes,3,opt,name=Material,proto3" json:"Material,omitempty"`             // zero val == empty
	MaximumVolume float32    `protobuf:"fixed32,4,opt,name=MaximumVolume,proto3" json:"MaximumVolume,omitempty"` // zero val == empty
	Reusable      *MaybeBool `protobuf:"bytes,5,opt,name=Reusable,proto3" json:"Reusable,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePackageV1Request) Descriptor deprecated

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

Deprecated: Use UpdatePackageV1Request.ProtoReflect.Descriptor instead.

func (*UpdatePackageV1Request) GetMaterial

func (x *UpdatePackageV1Request) GetMaterial() string

func (*UpdatePackageV1Request) GetMaximumVolume

func (x *UpdatePackageV1Request) GetMaximumVolume() float32

func (*UpdatePackageV1Request) GetPackageID

func (x *UpdatePackageV1Request) GetPackageID() uint64

func (*UpdatePackageV1Request) GetReusable

func (x *UpdatePackageV1Request) GetReusable() *MaybeBool

func (*UpdatePackageV1Request) GetTitle

func (x *UpdatePackageV1Request) GetTitle() string

func (*UpdatePackageV1Request) ProtoMessage

func (*UpdatePackageV1Request) ProtoMessage()

func (*UpdatePackageV1Request) ProtoReflect

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

func (*UpdatePackageV1Request) Reset

func (x *UpdatePackageV1Request) Reset()

func (*UpdatePackageV1Request) String

func (x *UpdatePackageV1Request) String() string

func (*UpdatePackageV1Request) Validate

func (m *UpdatePackageV1Request) Validate() error

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

type UpdatePackageV1RequestValidationError

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

UpdatePackageV1RequestValidationError is the validation error returned by UpdatePackageV1Request.Validate if the designated constraints aren't met.

func (UpdatePackageV1RequestValidationError) Cause

Cause function returns cause value.

func (UpdatePackageV1RequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePackageV1RequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePackageV1RequestValidationError) Field

Field function returns field value.

func (UpdatePackageV1RequestValidationError) Key

Key function returns key value.

func (UpdatePackageV1RequestValidationError) Reason

Reason function returns reason value.

type UpdatePackageV1Response

type UpdatePackageV1Response struct {
	Suc bool `protobuf:"varint,1,opt,name=Suc,proto3" json:"Suc,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePackageV1Response) Descriptor deprecated

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

Deprecated: Use UpdatePackageV1Response.ProtoReflect.Descriptor instead.

func (*UpdatePackageV1Response) GetSuc

func (x *UpdatePackageV1Response) GetSuc() bool

func (*UpdatePackageV1Response) ProtoMessage

func (*UpdatePackageV1Response) ProtoMessage()

func (*UpdatePackageV1Response) ProtoReflect

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

func (*UpdatePackageV1Response) Reset

func (x *UpdatePackageV1Response) Reset()

func (*UpdatePackageV1Response) String

func (x *UpdatePackageV1Response) String() string

func (*UpdatePackageV1Response) Validate

func (m *UpdatePackageV1Response) Validate() error

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

type UpdatePackageV1ResponseValidationError

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

UpdatePackageV1ResponseValidationError is the validation error returned by UpdatePackageV1Response.Validate if the designated constraints aren't met.

func (UpdatePackageV1ResponseValidationError) Cause

Cause function returns cause value.

func (UpdatePackageV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdatePackageV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdatePackageV1ResponseValidationError) Field

Field function returns field value.

func (UpdatePackageV1ResponseValidationError) Key

Key function returns key value.

func (UpdatePackageV1ResponseValidationError) Reason

Reason function returns reason value.

Directories

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

Jump to

Keyboard shortcuts

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