items

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 28 Imported by: 2

Documentation

Overview

Package items is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	SortingMode_name = map[int32]string{
		0: "UNKNOWN",
		1: "WEIGHT_DESC",
		2: "WEIGHT_ASC",
		3: "VOLUME_DESC",
		4: "VOLUME_ASC",
	}
	SortingMode_value = map[string]int32{
		"UNKNOWN":     0,
		"WEIGHT_DESC": 1,
		"WEIGHT_ASC":  2,
		"VOLUME_DESC": 3,
		"VOLUME_ASC":  4,
	}
)

Enum value maps for SortingMode.

View Source
var File_items_items_model_proto protoreflect.FileDescriptor
View Source
var File_items_items_proto protoreflect.FileDescriptor

Functions

func RegisterMruVItemServiceHandler

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

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

func RegisterMruVItemServiceHandlerClient

func RegisterMruVItemServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVItemServiceClient) error

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

func RegisterMruVItemServiceHandlerFromEndpoint

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

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

func RegisterMruVItemServiceHandlerServer

func RegisterMruVItemServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVItemServiceServer) error

RegisterMruVItemServiceHandlerServer registers the http handlers for service MruVItemService to "mux". UnaryRPC :call MruVItemServiceServer 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 RegisterMruVItemServiceHandlerFromEndpoint instead.

func RegisterMruVItemServiceServer

func RegisterMruVItemServiceServer(s *grpc.Server, srv MruVItemServiceServer)

Types

type Container

type Container struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	//ID of an container type.
	TypeId uint32 `protobuf:"varint,2,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	//ID of container item representing container.
	ItemId uint32 `protobuf:"varint,3,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	//Number of items inside container.
	ItemsInside uint32 `protobuf:"varint,4,opt,name=items_inside,json=itemsInside,proto3" json:"items_inside,omitempty"`
	//List of items inside container.
	Items []*InsideItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Container data structure.

func (*Container) Descriptor deprecated

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

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetId

func (x *Container) GetId() uint32

func (*Container) GetItemId

func (x *Container) GetItemId() uint32

func (*Container) GetItems

func (x *Container) GetItems() []*InsideItem

func (*Container) GetItemsInside

func (x *Container) GetItemsInside() uint32

func (*Container) GetTypeId

func (x *Container) GetTypeId() uint32

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect added in v0.8.4

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

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

func (*Container) Validate

func (m *Container) Validate() error

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

type ContainerID

type ContainerID struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Container ID.

func (*ContainerID) Descriptor deprecated

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

Deprecated: Use ContainerID.ProtoReflect.Descriptor instead.

func (*ContainerID) GetId

func (x *ContainerID) GetId() uint32

func (*ContainerID) ProtoMessage

func (*ContainerID) ProtoMessage()

func (*ContainerID) ProtoReflect added in v0.8.4

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

func (*ContainerID) Reset

func (x *ContainerID) Reset()

func (*ContainerID) String

func (x *ContainerID) String() string

func (*ContainerID) Validate

func (m *ContainerID) Validate() error

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

type ContainerIDValidationError

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

ContainerIDValidationError is the validation error returned by ContainerID.Validate if the designated constraints aren't met.

func (ContainerIDValidationError) Cause

Cause function returns cause value.

func (ContainerIDValidationError) Error

Error satisfies the builtin error interface

func (ContainerIDValidationError) ErrorName

func (e ContainerIDValidationError) ErrorName() string

ErrorName returns error name.

func (ContainerIDValidationError) Field

Field function returns field value.

func (ContainerIDValidationError) Key

Key function returns key value.

func (ContainerIDValidationError) Reason

Reason function returns reason value.

type ContainerType

type ContainerType struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	//ID of an item type.
	ContainerItemTypeId uint32 `protobuf:"varint,2,opt,name=container_item_type_id,json=containerItemTypeId,proto3" json:"container_item_type_id,omitempty"`
	//Max items in the container.
	MaxNumber uint32 `protobuf:"varint,3,opt,name=max_number,json=maxNumber,proto3" json:"max_number,omitempty"`
	//Max volume of items in the container.
	MaxVolume float32 `protobuf:"fixed32,4,opt,name=max_volume,json=maxVolume,proto3" json:"max_volume,omitempty"`
	//Max weight of items in the container.
	MaxWeight      float32 `protobuf:"fixed32,5,opt,name=max_weight,json=maxWeight,proto3" json:"max_weight,omitempty"`
	ValidItemTypes []int64 `protobuf:"varint,8,rep,packed,name=valid_item_types,json=validItemTypes,proto3" json:"valid_item_types,omitempty"`
	// contains filtered or unexported fields
}

Container type data structure.

func (*ContainerType) Descriptor deprecated

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

Deprecated: Use ContainerType.ProtoReflect.Descriptor instead.

func (*ContainerType) GetContainerItemTypeId

func (x *ContainerType) GetContainerItemTypeId() uint32

func (*ContainerType) GetId

func (x *ContainerType) GetId() uint32

func (*ContainerType) GetMaxNumber

func (x *ContainerType) GetMaxNumber() uint32

func (*ContainerType) GetMaxVolume

func (x *ContainerType) GetMaxVolume() float32

func (*ContainerType) GetMaxWeight

func (x *ContainerType) GetMaxWeight() float32

func (*ContainerType) GetValidItemTypes

func (x *ContainerType) GetValidItemTypes() []int64

func (*ContainerType) ProtoMessage

func (*ContainerType) ProtoMessage()

func (*ContainerType) ProtoReflect added in v0.8.4

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

func (*ContainerType) Reset

func (x *ContainerType) Reset()

func (*ContainerType) String

func (x *ContainerType) String() string

func (*ContainerType) Validate

func (m *ContainerType) Validate() error

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

type ContainerTypeID

type ContainerTypeID struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Container type ID.

func (*ContainerTypeID) Descriptor deprecated

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

Deprecated: Use ContainerTypeID.ProtoReflect.Descriptor instead.

func (*ContainerTypeID) GetId

func (x *ContainerTypeID) GetId() uint32

func (*ContainerTypeID) ProtoMessage

func (*ContainerTypeID) ProtoMessage()

func (*ContainerTypeID) ProtoReflect added in v0.8.4

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

func (*ContainerTypeID) Reset

func (x *ContainerTypeID) Reset()

func (*ContainerTypeID) String

func (x *ContainerTypeID) String() string

func (*ContainerTypeID) Validate

func (m *ContainerTypeID) Validate() error

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

type ContainerTypeIDValidationError

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

ContainerTypeIDValidationError is the validation error returned by ContainerTypeID.Validate if the designated constraints aren't met.

func (ContainerTypeIDValidationError) Cause

Cause function returns cause value.

func (ContainerTypeIDValidationError) Error

Error satisfies the builtin error interface

func (ContainerTypeIDValidationError) ErrorName

func (e ContainerTypeIDValidationError) ErrorName() string

ErrorName returns error name.

func (ContainerTypeIDValidationError) Field

Field function returns field value.

func (ContainerTypeIDValidationError) Key

Key function returns key value.

func (ContainerTypeIDValidationError) Reason

Reason function returns reason value.

type ContainerTypeValidationError

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

ContainerTypeValidationError is the validation error returned by ContainerType.Validate if the designated constraints aren't met.

func (ContainerTypeValidationError) Cause

Cause function returns cause value.

func (ContainerTypeValidationError) Error

Error satisfies the builtin error interface

func (ContainerTypeValidationError) ErrorName

func (e ContainerTypeValidationError) ErrorName() string

ErrorName returns error name.

func (ContainerTypeValidationError) Field

Field function returns field value.

func (ContainerTypeValidationError) Key

Key function returns key value.

func (ContainerTypeValidationError) Reason

Reason function returns reason value.

type ContainerValidationError

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

ContainerValidationError is the validation error returned by Container.Validate if the designated constraints aren't met.

func (ContainerValidationError) Cause

func (e ContainerValidationError) Cause() error

Cause function returns cause value.

func (ContainerValidationError) Error

func (e ContainerValidationError) Error() string

Error satisfies the builtin error interface

func (ContainerValidationError) ErrorName

func (e ContainerValidationError) ErrorName() string

ErrorName returns error name.

func (ContainerValidationError) Field

func (e ContainerValidationError) Field() string

Field function returns field value.

func (ContainerValidationError) Key

Key function returns key value.

func (ContainerValidationError) Reason

func (e ContainerValidationError) Reason() string

Reason function returns reason value.

type GetContainerItemsRequest

type GetContainerItemsRequest struct {

	//ID of container with items.
	ContainerId uint32 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	//Limit of the returned items.
	Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetContainerItems`.

func (*GetContainerItemsRequest) Descriptor deprecated

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

Deprecated: Use GetContainerItemsRequest.ProtoReflect.Descriptor instead.

func (*GetContainerItemsRequest) GetContainerId

func (x *GetContainerItemsRequest) GetContainerId() uint32

func (*GetContainerItemsRequest) GetLimit

func (x *GetContainerItemsRequest) GetLimit() uint32

func (*GetContainerItemsRequest) ProtoMessage

func (*GetContainerItemsRequest) ProtoMessage()

func (*GetContainerItemsRequest) ProtoReflect added in v0.8.4

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

func (*GetContainerItemsRequest) Reset

func (x *GetContainerItemsRequest) Reset()

func (*GetContainerItemsRequest) String

func (x *GetContainerItemsRequest) String() string

func (*GetContainerItemsRequest) Validate

func (m *GetContainerItemsRequest) Validate() error

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

type GetContainerItemsRequestValidationError

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

GetContainerItemsRequestValidationError is the validation error returned by GetContainerItemsRequest.Validate if the designated constraints aren't met.

func (GetContainerItemsRequestValidationError) Cause

Cause function returns cause value.

func (GetContainerItemsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetContainerItemsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetContainerItemsRequestValidationError) Field

Field function returns field value.

func (GetContainerItemsRequestValidationError) Key

Key function returns key value.

func (GetContainerItemsRequestValidationError) Reason

Reason function returns reason value.

type GetContainerItemsResponse

type GetContainerItemsResponse struct {

	//List of items inside containers.
	Items []*InsideItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetContainerItems`.

func (*GetContainerItemsResponse) Descriptor deprecated

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

Deprecated: Use GetContainerItemsResponse.ProtoReflect.Descriptor instead.

func (*GetContainerItemsResponse) GetItems

func (x *GetContainerItemsResponse) GetItems() []*InsideItem

func (*GetContainerItemsResponse) ProtoMessage

func (*GetContainerItemsResponse) ProtoMessage()

func (*GetContainerItemsResponse) ProtoReflect added in v0.8.4

func (*GetContainerItemsResponse) Reset

func (x *GetContainerItemsResponse) Reset()

func (*GetContainerItemsResponse) String

func (x *GetContainerItemsResponse) String() string

func (*GetContainerItemsResponse) Validate

func (m *GetContainerItemsResponse) Validate() error

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

type GetContainerItemsResponseValidationError

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

GetContainerItemsResponseValidationError is the validation error returned by GetContainerItemsResponse.Validate if the designated constraints aren't met.

func (GetContainerItemsResponseValidationError) Cause

Cause function returns cause value.

func (GetContainerItemsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetContainerItemsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetContainerItemsResponseValidationError) Field

Field function returns field value.

func (GetContainerItemsResponseValidationError) Key

Key function returns key value.

func (GetContainerItemsResponseValidationError) Reason

Reason function returns reason value.

type GetContainerTypesRequest

type GetContainerTypesRequest struct {

	//Limit of the returned container types.
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetContainerTypes`.

func (*GetContainerTypesRequest) Descriptor deprecated

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

Deprecated: Use GetContainerTypesRequest.ProtoReflect.Descriptor instead.

func (*GetContainerTypesRequest) GetLimit

func (x *GetContainerTypesRequest) GetLimit() uint32

func (*GetContainerTypesRequest) ProtoMessage

func (*GetContainerTypesRequest) ProtoMessage()

func (*GetContainerTypesRequest) ProtoReflect added in v0.8.4

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

func (*GetContainerTypesRequest) Reset

func (x *GetContainerTypesRequest) Reset()

func (*GetContainerTypesRequest) String

func (x *GetContainerTypesRequest) String() string

func (*GetContainerTypesRequest) Validate

func (m *GetContainerTypesRequest) Validate() error

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

type GetContainerTypesRequestValidationError

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

GetContainerTypesRequestValidationError is the validation error returned by GetContainerTypesRequest.Validate if the designated constraints aren't met.

func (GetContainerTypesRequestValidationError) Cause

Cause function returns cause value.

func (GetContainerTypesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetContainerTypesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetContainerTypesRequestValidationError) Field

Field function returns field value.

func (GetContainerTypesRequestValidationError) Key

Key function returns key value.

func (GetContainerTypesRequestValidationError) Reason

Reason function returns reason value.

type GetContainerTypesResponse

type GetContainerTypesResponse struct {

	//List of container types.
	ContainerTypes []*ContainerType `protobuf:"bytes,1,rep,name=container_types,json=containerTypes,proto3" json:"container_types,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.GetContainers`.

func (*GetContainerTypesResponse) Descriptor deprecated

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

Deprecated: Use GetContainerTypesResponse.ProtoReflect.Descriptor instead.

func (*GetContainerTypesResponse) GetContainerTypes

func (x *GetContainerTypesResponse) GetContainerTypes() []*ContainerType

func (*GetContainerTypesResponse) ProtoMessage

func (*GetContainerTypesResponse) ProtoMessage()

func (*GetContainerTypesResponse) ProtoReflect added in v0.8.4

func (*GetContainerTypesResponse) Reset

func (x *GetContainerTypesResponse) Reset()

func (*GetContainerTypesResponse) String

func (x *GetContainerTypesResponse) String() string

func (*GetContainerTypesResponse) Validate

func (m *GetContainerTypesResponse) Validate() error

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

type GetContainerTypesResponseValidationError

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

GetContainerTypesResponseValidationError is the validation error returned by GetContainerTypesResponse.Validate if the designated constraints aren't met.

func (GetContainerTypesResponseValidationError) Cause

Cause function returns cause value.

func (GetContainerTypesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetContainerTypesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetContainerTypesResponseValidationError) Field

Field function returns field value.

func (GetContainerTypesResponseValidationError) Key

Key function returns key value.

func (GetContainerTypesResponseValidationError) Reason

Reason function returns reason value.

type GetContainersRequest

type GetContainersRequest struct {

	//Limit of the returned containers.
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetContainers`.

func (*GetContainersRequest) Descriptor deprecated

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

Deprecated: Use GetContainersRequest.ProtoReflect.Descriptor instead.

func (*GetContainersRequest) GetLimit

func (x *GetContainersRequest) GetLimit() uint32

func (*GetContainersRequest) ProtoMessage

func (*GetContainersRequest) ProtoMessage()

func (*GetContainersRequest) ProtoReflect added in v0.8.4

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

func (*GetContainersRequest) Reset

func (x *GetContainersRequest) Reset()

func (*GetContainersRequest) String

func (x *GetContainersRequest) String() string

func (*GetContainersRequest) Validate

func (m *GetContainersRequest) Validate() error

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

type GetContainersRequestValidationError

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

GetContainersRequestValidationError is the validation error returned by GetContainersRequest.Validate if the designated constraints aren't met.

func (GetContainersRequestValidationError) Cause

Cause function returns cause value.

func (GetContainersRequestValidationError) Error

Error satisfies the builtin error interface

func (GetContainersRequestValidationError) ErrorName

ErrorName returns error name.

func (GetContainersRequestValidationError) Field

Field function returns field value.

func (GetContainersRequestValidationError) Key

Key function returns key value.

func (GetContainersRequestValidationError) Reason

Reason function returns reason value.

type GetContainersResponse

type GetContainersResponse struct {

	//List of containers.
	Containers []*Container `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.GetContainers`.

func (*GetContainersResponse) Descriptor deprecated

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

Deprecated: Use GetContainersResponse.ProtoReflect.Descriptor instead.

func (*GetContainersResponse) GetContainers

func (x *GetContainersResponse) GetContainers() []*Container

func (*GetContainersResponse) ProtoMessage

func (*GetContainersResponse) ProtoMessage()

func (*GetContainersResponse) ProtoReflect added in v0.8.4

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

func (*GetContainersResponse) Reset

func (x *GetContainersResponse) Reset()

func (*GetContainersResponse) String

func (x *GetContainersResponse) String() string

func (*GetContainersResponse) Validate

func (m *GetContainersResponse) Validate() error

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

type GetContainersResponseValidationError

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

GetContainersResponseValidationError is the validation error returned by GetContainersResponse.Validate if the designated constraints aren't met.

func (GetContainersResponseValidationError) Cause

Cause function returns cause value.

func (GetContainersResponseValidationError) Error

Error satisfies the builtin error interface

func (GetContainersResponseValidationError) ErrorName

ErrorName returns error name.

func (GetContainersResponseValidationError) Field

Field function returns field value.

func (GetContainersResponseValidationError) Key

Key function returns key value.

func (GetContainersResponseValidationError) Reason

Reason function returns reason value.

type GetItemTypesRequest

type GetItemTypesRequest struct {

	// Limit of the returned item types.
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetItemTypes`.

func (*GetItemTypesRequest) Descriptor deprecated

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

Deprecated: Use GetItemTypesRequest.ProtoReflect.Descriptor instead.

func (*GetItemTypesRequest) GetLimit

func (x *GetItemTypesRequest) GetLimit() uint32

func (*GetItemTypesRequest) ProtoMessage

func (*GetItemTypesRequest) ProtoMessage()

func (*GetItemTypesRequest) ProtoReflect added in v0.8.4

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

func (*GetItemTypesRequest) Reset

func (x *GetItemTypesRequest) Reset()

func (*GetItemTypesRequest) String

func (x *GetItemTypesRequest) String() string

func (*GetItemTypesRequest) Validate

func (m *GetItemTypesRequest) Validate() error

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

type GetItemTypesRequestValidationError

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

GetItemTypesRequestValidationError is the validation error returned by GetItemTypesRequest.Validate if the designated constraints aren't met.

func (GetItemTypesRequestValidationError) Cause

Cause function returns cause value.

func (GetItemTypesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetItemTypesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetItemTypesRequestValidationError) Field

Field function returns field value.

func (GetItemTypesRequestValidationError) Key

Key function returns key value.

func (GetItemTypesRequestValidationError) Reason

Reason function returns reason value.

type GetItemTypesResponse

type GetItemTypesResponse struct {

	//List of item types.
	ItemTypes []*ItemType `protobuf:"bytes,1,rep,name=item_types,json=itemTypes,proto3" json:"item_types,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.GetItemTypes`.

func (*GetItemTypesResponse) Descriptor deprecated

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

Deprecated: Use GetItemTypesResponse.ProtoReflect.Descriptor instead.

func (*GetItemTypesResponse) GetItemTypes

func (x *GetItemTypesResponse) GetItemTypes() []*ItemType

func (*GetItemTypesResponse) ProtoMessage

func (*GetItemTypesResponse) ProtoMessage()

func (*GetItemTypesResponse) ProtoReflect added in v0.8.4

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

func (*GetItemTypesResponse) Reset

func (x *GetItemTypesResponse) Reset()

func (*GetItemTypesResponse) String

func (x *GetItemTypesResponse) String() string

func (*GetItemTypesResponse) Validate

func (m *GetItemTypesResponse) Validate() error

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

type GetItemTypesResponseValidationError

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

GetItemTypesResponseValidationError is the validation error returned by GetItemTypesResponse.Validate if the designated constraints aren't met.

func (GetItemTypesResponseValidationError) Cause

Cause function returns cause value.

func (GetItemTypesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetItemTypesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetItemTypesResponseValidationError) Field

Field function returns field value.

func (GetItemTypesResponseValidationError) Key

Key function returns key value.

func (GetItemTypesResponseValidationError) Reason

Reason function returns reason value.

type GetItemsRequest

type GetItemsRequest struct {

	// Limit of the returned items.
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetItems`.

func (*GetItemsRequest) Descriptor deprecated

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

Deprecated: Use GetItemsRequest.ProtoReflect.Descriptor instead.

func (*GetItemsRequest) GetLimit

func (x *GetItemsRequest) GetLimit() uint32

func (*GetItemsRequest) ProtoMessage

func (*GetItemsRequest) ProtoMessage()

func (*GetItemsRequest) ProtoReflect added in v0.8.4

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

func (*GetItemsRequest) Reset

func (x *GetItemsRequest) Reset()

func (*GetItemsRequest) String

func (x *GetItemsRequest) String() string

func (*GetItemsRequest) Validate

func (m *GetItemsRequest) Validate() error

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

type GetItemsRequestValidationError

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

GetItemsRequestValidationError is the validation error returned by GetItemsRequest.Validate if the designated constraints aren't met.

func (GetItemsRequestValidationError) Cause

Cause function returns cause value.

func (GetItemsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetItemsRequestValidationError) ErrorName

func (e GetItemsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetItemsRequestValidationError) Field

Field function returns field value.

func (GetItemsRequestValidationError) Key

Key function returns key value.

func (GetItemsRequestValidationError) Reason

Reason function returns reason value.

type GetItemsResponse

type GetItemsResponse struct {

	// List of items.
	Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.GetItems`.

func (*GetItemsResponse) Descriptor deprecated

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

Deprecated: Use GetItemsResponse.ProtoReflect.Descriptor instead.

func (*GetItemsResponse) GetItems

func (x *GetItemsResponse) GetItems() []*Item

func (*GetItemsResponse) ProtoMessage

func (*GetItemsResponse) ProtoMessage()

func (*GetItemsResponse) ProtoReflect added in v0.8.4

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

func (*GetItemsResponse) Reset

func (x *GetItemsResponse) Reset()

func (*GetItemsResponse) String

func (x *GetItemsResponse) String() string

func (*GetItemsResponse) Validate

func (m *GetItemsResponse) Validate() error

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

type GetItemsResponseValidationError

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

GetItemsResponseValidationError is the validation error returned by GetItemsResponse.Validate if the designated constraints aren't met.

func (GetItemsResponseValidationError) Cause

Cause function returns cause value.

func (GetItemsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetItemsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetItemsResponseValidationError) Field

Field function returns field value.

func (GetItemsResponseValidationError) Key

Key function returns key value.

func (GetItemsResponseValidationError) Reason

Reason function returns reason value.

type GetNearestItemsRequest

type GetNearestItemsRequest struct {

	//Position from which to calculate the distance
	Position *common.Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	//ID of container that contains items.
	ContainerId uint32 `protobuf:"varint,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	//The distance over which the items are ignored.
	DistanceLimit float64 `protobuf:"fixed64,3,opt,name=distance_limit,json=distanceLimit,proto3" json:"distance_limit,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.GetNearestItems`.

func (*GetNearestItemsRequest) Descriptor deprecated

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

Deprecated: Use GetNearestItemsRequest.ProtoReflect.Descriptor instead.

func (*GetNearestItemsRequest) GetContainerId

func (x *GetNearestItemsRequest) GetContainerId() uint32

func (*GetNearestItemsRequest) GetDistanceLimit

func (x *GetNearestItemsRequest) GetDistanceLimit() float64

func (*GetNearestItemsRequest) GetPosition

func (x *GetNearestItemsRequest) GetPosition() *common.Position

func (*GetNearestItemsRequest) ProtoMessage

func (*GetNearestItemsRequest) ProtoMessage()

func (*GetNearestItemsRequest) ProtoReflect added in v0.8.4

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

func (*GetNearestItemsRequest) Reset

func (x *GetNearestItemsRequest) Reset()

func (*GetNearestItemsRequest) String

func (x *GetNearestItemsRequest) String() string

func (*GetNearestItemsRequest) Validate

func (m *GetNearestItemsRequest) Validate() error

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

type GetNearestItemsRequestValidationError

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

GetNearestItemsRequestValidationError is the validation error returned by GetNearestItemsRequest.Validate if the designated constraints aren't met.

func (GetNearestItemsRequestValidationError) Cause

Cause function returns cause value.

func (GetNearestItemsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNearestItemsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetNearestItemsRequestValidationError) Field

Field function returns field value.

func (GetNearestItemsRequestValidationError) Key

Key function returns key value.

func (GetNearestItemsRequestValidationError) Reason

Reason function returns reason value.

type GetNearestItemsResponse

type GetNearestItemsResponse struct {

	//List of items sorted from nearest to farthest.
	Item []*InsideItem `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.GetNearestItems`.

func (*GetNearestItemsResponse) Descriptor deprecated

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

Deprecated: Use GetNearestItemsResponse.ProtoReflect.Descriptor instead.

func (*GetNearestItemsResponse) GetItem

func (x *GetNearestItemsResponse) GetItem() []*InsideItem

func (*GetNearestItemsResponse) ProtoMessage

func (*GetNearestItemsResponse) ProtoMessage()

func (*GetNearestItemsResponse) ProtoReflect added in v0.8.4

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

func (*GetNearestItemsResponse) Reset

func (x *GetNearestItemsResponse) Reset()

func (*GetNearestItemsResponse) String

func (x *GetNearestItemsResponse) String() string

func (*GetNearestItemsResponse) Validate

func (m *GetNearestItemsResponse) Validate() error

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

type GetNearestItemsResponseValidationError

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

GetNearestItemsResponseValidationError is the validation error returned by GetNearestItemsResponse.Validate if the designated constraints aren't met.

func (GetNearestItemsResponseValidationError) Cause

Cause function returns cause value.

func (GetNearestItemsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetNearestItemsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetNearestItemsResponseValidationError) Field

Field function returns field value.

func (GetNearestItemsResponseValidationError) Key

Key function returns key value.

func (GetNearestItemsResponseValidationError) Reason

Reason function returns reason value.

type InsideItem

type InsideItem struct {

	//ID of container containing the item.
	ContainerId uint32 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	//ID of the item or the whole item.
	//
	// Types that are assignable to ItemOrId:
	//	*InsideItem_ItemId
	//	*InsideItem_Item
	ItemOrId isInsideItem_ItemOrId `protobuf_oneof:"item_or_id"`
	//Position representing order in container. In ascending manner.
	Position int32 `protobuf:"varint,4,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

Item inside container data structure.

func (*InsideItem) Descriptor deprecated

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

Deprecated: Use InsideItem.ProtoReflect.Descriptor instead.

func (*InsideItem) GetContainerId

func (x *InsideItem) GetContainerId() uint32

func (*InsideItem) GetItem

func (x *InsideItem) GetItem() *Item

func (*InsideItem) GetItemId

func (x *InsideItem) GetItemId() uint32

func (*InsideItem) GetItemOrId

func (m *InsideItem) GetItemOrId() isInsideItem_ItemOrId

func (*InsideItem) GetPosition

func (x *InsideItem) GetPosition() int32

func (*InsideItem) ProtoMessage

func (*InsideItem) ProtoMessage()

func (*InsideItem) ProtoReflect added in v0.8.4

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

func (*InsideItem) Reset

func (x *InsideItem) Reset()

func (*InsideItem) String

func (x *InsideItem) String() string

func (*InsideItem) Validate

func (m *InsideItem) Validate() error

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

type InsideItemValidationError

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

InsideItemValidationError is the validation error returned by InsideItem.Validate if the designated constraints aren't met.

func (InsideItemValidationError) Cause

func (e InsideItemValidationError) Cause() error

Cause function returns cause value.

func (InsideItemValidationError) Error

Error satisfies the builtin error interface

func (InsideItemValidationError) ErrorName

func (e InsideItemValidationError) ErrorName() string

ErrorName returns error name.

func (InsideItemValidationError) Field

Field function returns field value.

func (InsideItemValidationError) Key

Key function returns key value.

func (InsideItemValidationError) Reason

func (e InsideItemValidationError) Reason() string

Reason function returns reason value.

type InsideItem_Item

type InsideItem_Item struct {
	Item *Item `protobuf:"bytes,3,opt,name=item,proto3,oneof"`
}

type InsideItem_ItemId

type InsideItem_ItemId struct {
	ItemId uint32 `protobuf:"varint,2,opt,name=item_id,json=itemId,proto3,oneof"`
}

type Item

type Item struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	//ID of an item type.
	ItemTypeId uint32 `protobuf:"varint,2,opt,name=item_type_id,json=itemTypeId,proto3" json:"item_type_id,omitempty"`
	//Current weight of the item.
	Weight float32 `protobuf:"fixed32,3,opt,name=weight,proto3" json:"weight,omitempty"`
	//Current volume of the item.
	Volume float32 `protobuf:"fixed32,4,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

Item data structure.

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetId

func (x *Item) GetId() uint32

func (*Item) GetItemTypeId

func (x *Item) GetItemTypeId() uint32

func (*Item) GetVolume

func (x *Item) GetVolume() float32

func (*Item) GetWeight

func (x *Item) GetWeight() float32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect added in v0.8.4

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

func (*Item) Validate

func (m *Item) Validate() error

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

type ItemID

type ItemID struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Item ID.

func (*ItemID) Descriptor deprecated

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

Deprecated: Use ItemID.ProtoReflect.Descriptor instead.

func (*ItemID) GetId

func (x *ItemID) GetId() uint32

func (*ItemID) ProtoMessage

func (*ItemID) ProtoMessage()

func (*ItemID) ProtoReflect added in v0.8.4

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

func (*ItemID) Reset

func (x *ItemID) Reset()

func (*ItemID) String

func (x *ItemID) String() string

func (*ItemID) Validate

func (m *ItemID) Validate() error

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

type ItemIDValidationError

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

ItemIDValidationError is the validation error returned by ItemID.Validate if the designated constraints aren't met.

func (ItemIDValidationError) Cause

func (e ItemIDValidationError) Cause() error

Cause function returns cause value.

func (ItemIDValidationError) Error

func (e ItemIDValidationError) Error() string

Error satisfies the builtin error interface

func (ItemIDValidationError) ErrorName

func (e ItemIDValidationError) ErrorName() string

ErrorName returns error name.

func (ItemIDValidationError) Field

func (e ItemIDValidationError) Field() string

Field function returns field value.

func (ItemIDValidationError) Key

func (e ItemIDValidationError) Key() bool

Key function returns key value.

func (ItemIDValidationError) Reason

func (e ItemIDValidationError) Reason() string

Reason function returns reason value.

type ItemType

type ItemType struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	//Short name of item type.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	//Description of item type.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	//Default weight of items created with that item type.
	BaseWeight float32 `protobuf:"fixed32,4,opt,name=base_weight,json=baseWeight,proto3" json:"base_weight,omitempty"`
	//Default volume of items created with that item type.
	BaseVolume float32 `protobuf:"fixed32,5,opt,name=base_volume,json=baseVolume,proto3" json:"base_volume,omitempty"`
	//GTA V model name.
	ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	//GTA V model hash.
	ModelHash int32 `protobuf:"varint,7,opt,name=model_hash,json=modelHash,proto3" json:"model_hash,omitempty"`
	// contains filtered or unexported fields
}

Item type data structure

func (*ItemType) Descriptor deprecated

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

Deprecated: Use ItemType.ProtoReflect.Descriptor instead.

func (*ItemType) GetBaseVolume

func (x *ItemType) GetBaseVolume() float32

func (*ItemType) GetBaseWeight

func (x *ItemType) GetBaseWeight() float32

func (*ItemType) GetDescription

func (x *ItemType) GetDescription() string

func (*ItemType) GetId

func (x *ItemType) GetId() uint32

func (*ItemType) GetModelHash

func (x *ItemType) GetModelHash() int32

func (*ItemType) GetModelName

func (x *ItemType) GetModelName() string

func (*ItemType) GetName

func (x *ItemType) GetName() string

func (*ItemType) ProtoMessage

func (*ItemType) ProtoMessage()

func (*ItemType) ProtoReflect added in v0.8.4

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

func (*ItemType) Reset

func (x *ItemType) Reset()

func (*ItemType) String

func (x *ItemType) String() string

func (*ItemType) Validate

func (m *ItemType) Validate() error

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

type ItemTypeID

type ItemTypeID struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Item type ID.

func (*ItemTypeID) Descriptor deprecated

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

Deprecated: Use ItemTypeID.ProtoReflect.Descriptor instead.

func (*ItemTypeID) GetId

func (x *ItemTypeID) GetId() uint32

func (*ItemTypeID) ProtoMessage

func (*ItemTypeID) ProtoMessage()

func (*ItemTypeID) ProtoReflect added in v0.8.4

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

func (*ItemTypeID) Reset

func (x *ItemTypeID) Reset()

func (*ItemTypeID) String

func (x *ItemTypeID) String() string

func (*ItemTypeID) Validate

func (m *ItemTypeID) Validate() error

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

type ItemTypeIDValidationError

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

ItemTypeIDValidationError is the validation error returned by ItemTypeID.Validate if the designated constraints aren't met.

func (ItemTypeIDValidationError) Cause

func (e ItemTypeIDValidationError) Cause() error

Cause function returns cause value.

func (ItemTypeIDValidationError) Error

Error satisfies the builtin error interface

func (ItemTypeIDValidationError) ErrorName

func (e ItemTypeIDValidationError) ErrorName() string

ErrorName returns error name.

func (ItemTypeIDValidationError) Field

Field function returns field value.

func (ItemTypeIDValidationError) Key

Key function returns key value.

func (ItemTypeIDValidationError) Reason

func (e ItemTypeIDValidationError) Reason() string

Reason function returns reason value.

type ItemTypeValidationError

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

ItemTypeValidationError is the validation error returned by ItemType.Validate if the designated constraints aren't met.

func (ItemTypeValidationError) Cause

func (e ItemTypeValidationError) Cause() error

Cause function returns cause value.

func (ItemTypeValidationError) Error

func (e ItemTypeValidationError) Error() string

Error satisfies the builtin error interface

func (ItemTypeValidationError) ErrorName

func (e ItemTypeValidationError) ErrorName() string

ErrorName returns error name.

func (ItemTypeValidationError) Field

func (e ItemTypeValidationError) Field() string

Field function returns field value.

func (ItemTypeValidationError) Key

func (e ItemTypeValidationError) Key() bool

Key function returns key value.

func (ItemTypeValidationError) Reason

func (e ItemTypeValidationError) Reason() string

Reason function returns reason value.

type ItemValidationError

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

ItemValidationError is the validation error returned by Item.Validate if the designated constraints aren't met.

func (ItemValidationError) Cause

func (e ItemValidationError) Cause() error

Cause function returns cause value.

func (ItemValidationError) Error

func (e ItemValidationError) Error() string

Error satisfies the builtin error interface

func (ItemValidationError) ErrorName

func (e ItemValidationError) ErrorName() string

ErrorName returns error name.

func (ItemValidationError) Field

func (e ItemValidationError) Field() string

Field function returns field value.

func (ItemValidationError) Key

func (e ItemValidationError) Key() bool

Key function returns key value.

func (ItemValidationError) Reason

func (e ItemValidationError) Reason() string

Reason function returns reason value.

type MruVItemServiceClient

type MruVItemServiceClient interface {
	// Create new item.
	CreateItem(ctx context.Context, in *Item, opts ...grpc.CallOption) (*ItemID, error)
	// Get item by id.
	GetItem(ctx context.Context, in *ItemID, opts ...grpc.CallOption) (*Item, error)
	// Delete item by id.
	DeleteItem(ctx context.Context, in *ItemID, opts ...grpc.CallOption) (*ItemID, error)
	// Gets all items.
	GetItems(ctx context.Context, in *GetItemsRequest, opts ...grpc.CallOption) (*GetItemsResponse, error)
	// Create item type.
	CreateItemType(ctx context.Context, in *ItemType, opts ...grpc.CallOption) (*ItemTypeID, error)
	// Get item type by id.
	GetItemType(ctx context.Context, in *ItemTypeID, opts ...grpc.CallOption) (*ItemType, error)
	// Delete item type by id.
	DeleteItemType(ctx context.Context, in *ItemTypeID, opts ...grpc.CallOption) (*ItemTypeID, error)
	// Gets all item types.
	GetItemTypes(ctx context.Context, in *GetItemTypesRequest, opts ...grpc.CallOption) (*GetItemTypesResponse, error)
	// Create container.
	CreateContainer(ctx context.Context, in *Container, opts ...grpc.CallOption) (*ContainerID, error)
	// Get container by id.
	GetContainer(ctx context.Context, in *ContainerID, opts ...grpc.CallOption) (*Container, error)
	// Delete container by id.
	DeleteContainer(ctx context.Context, in *ContainerID, opts ...grpc.CallOption) (*ContainerID, error)
	// Get all containers.
	GetContainers(ctx context.Context, in *GetContainersRequest, opts ...grpc.CallOption) (*GetContainersResponse, error)
	// Create a container type.
	CreateContainerType(ctx context.Context, in *ContainerType, opts ...grpc.CallOption) (*ContainerTypeID, error)
	// Get a container type by id.
	GetContainerType(ctx context.Context, in *ContainerTypeID, opts ...grpc.CallOption) (*ContainerType, error)
	// Delete a container type by id.
	DeleteContainerType(ctx context.Context, in *ContainerTypeID, opts ...grpc.CallOption) (*ContainerTypeID, error)
	// Get all container types.
	GetContainerTypes(ctx context.Context, in *GetContainerTypesRequest, opts ...grpc.CallOption) (*GetContainerTypesResponse, error)
	// Get items inside a container.
	GetContainerItems(ctx context.Context, in *GetContainerItemsRequest, opts ...grpc.CallOption) (*GetContainerItemsResponse, error)
	// Pull an item from container.
	PullItem(ctx context.Context, in *PullItemRequest, opts ...grpc.CallOption) (*Item, error)
	// Put an item into container.
	PutItem(ctx context.Context, in *PutItemRequest, opts ...grpc.CallOption) (*PutItemResponse, error)
	// Sort items inside container.
	// This procedure change order of items inside container.
	SortItems(ctx context.Context, in *SortItemsRequest, opts ...grpc.CallOption) (*SortItemsResponse, error)
	// Retrieves from the container the list of items nearest to the given position.
	GetNearestItems(ctx context.Context, in *GetNearestItemsRequest, opts ...grpc.CallOption) (*GetNearestItemsResponse, error)
	// Trigger action associated with the item usage.
	UseItem(ctx context.Context, in *UseItemRequest, opts ...grpc.CallOption) (*UseItemResponse, error)
	// Get service health status.
	GetServiceStatus(ctx context.Context, in *common.ServiceStatusRequest, opts ...grpc.CallOption) (*common.ServiceStatusResponse, error)
	//Get service current version.
	GetServiceVersion(ctx context.Context, in *common.VersionRequest, opts ...grpc.CallOption) (*common.VersionResponse, error)
}

MruVItemServiceClient is the client API for MruVItemService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MruVItemServiceServer

type MruVItemServiceServer interface {
	// Create new item.
	CreateItem(context.Context, *Item) (*ItemID, error)
	// Get item by id.
	GetItem(context.Context, *ItemID) (*Item, error)
	// Delete item by id.
	DeleteItem(context.Context, *ItemID) (*ItemID, error)
	// Gets all items.
	GetItems(context.Context, *GetItemsRequest) (*GetItemsResponse, error)
	// Create item type.
	CreateItemType(context.Context, *ItemType) (*ItemTypeID, error)
	// Get item type by id.
	GetItemType(context.Context, *ItemTypeID) (*ItemType, error)
	// Delete item type by id.
	DeleteItemType(context.Context, *ItemTypeID) (*ItemTypeID, error)
	// Gets all item types.
	GetItemTypes(context.Context, *GetItemTypesRequest) (*GetItemTypesResponse, error)
	// Create container.
	CreateContainer(context.Context, *Container) (*ContainerID, error)
	// Get container by id.
	GetContainer(context.Context, *ContainerID) (*Container, error)
	// Delete container by id.
	DeleteContainer(context.Context, *ContainerID) (*ContainerID, error)
	// Get all containers.
	GetContainers(context.Context, *GetContainersRequest) (*GetContainersResponse, error)
	// Create a container type.
	CreateContainerType(context.Context, *ContainerType) (*ContainerTypeID, error)
	// Get a container type by id.
	GetContainerType(context.Context, *ContainerTypeID) (*ContainerType, error)
	// Delete a container type by id.
	DeleteContainerType(context.Context, *ContainerTypeID) (*ContainerTypeID, error)
	// Get all container types.
	GetContainerTypes(context.Context, *GetContainerTypesRequest) (*GetContainerTypesResponse, error)
	// Get items inside a container.
	GetContainerItems(context.Context, *GetContainerItemsRequest) (*GetContainerItemsResponse, error)
	// Pull an item from container.
	PullItem(context.Context, *PullItemRequest) (*Item, error)
	// Put an item into container.
	PutItem(context.Context, *PutItemRequest) (*PutItemResponse, error)
	// Sort items inside container.
	// This procedure change order of items inside container.
	SortItems(context.Context, *SortItemsRequest) (*SortItemsResponse, error)
	// Retrieves from the container the list of items nearest to the given position.
	GetNearestItems(context.Context, *GetNearestItemsRequest) (*GetNearestItemsResponse, error)
	// Trigger action associated with the item usage.
	UseItem(context.Context, *UseItemRequest) (*UseItemResponse, error)
	// Get service health status.
	GetServiceStatus(context.Context, *common.ServiceStatusRequest) (*common.ServiceStatusResponse, error)
	//Get service current version.
	GetServiceVersion(context.Context, *common.VersionRequest) (*common.VersionResponse, error)
}

MruVItemServiceServer is the server API for MruVItemService service.

type PullItemRequest

type PullItemRequest struct {

	//ID of the container from which we pull out a item.
	ContainerId uint32 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	//ID of the item we want to pull out.
	//That item must be inside the container.
	ItemId uint32 `protobuf:"varint,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.PullItem`.

func (*PullItemRequest) Descriptor deprecated

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

Deprecated: Use PullItemRequest.ProtoReflect.Descriptor instead.

func (*PullItemRequest) GetContainerId

func (x *PullItemRequest) GetContainerId() uint32

func (*PullItemRequest) GetItemId

func (x *PullItemRequest) GetItemId() uint32

func (*PullItemRequest) ProtoMessage

func (*PullItemRequest) ProtoMessage()

func (*PullItemRequest) ProtoReflect added in v0.8.4

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

func (*PullItemRequest) Reset

func (x *PullItemRequest) Reset()

func (*PullItemRequest) String

func (x *PullItemRequest) String() string

func (*PullItemRequest) Validate

func (m *PullItemRequest) Validate() error

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

type PullItemRequestValidationError

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

PullItemRequestValidationError is the validation error returned by PullItemRequest.Validate if the designated constraints aren't met.

func (PullItemRequestValidationError) Cause

Cause function returns cause value.

func (PullItemRequestValidationError) Error

Error satisfies the builtin error interface

func (PullItemRequestValidationError) ErrorName

func (e PullItemRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PullItemRequestValidationError) Field

Field function returns field value.

func (PullItemRequestValidationError) Key

Key function returns key value.

func (PullItemRequestValidationError) Reason

Reason function returns reason value.

type PutItemRequest

type PutItemRequest struct {

	//ID of container where to put item.
	ContainerId uint32 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	//ID of item we wan to put in.
	ItemId uint32 `protobuf:"varint,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	// Types that are assignable to Where:
	//	*PutItemRequest_Slot
	Where isPutItemRequest_Where `protobuf_oneof:"where"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.PutItem`.

func (*PutItemRequest) Descriptor deprecated

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

Deprecated: Use PutItemRequest.ProtoReflect.Descriptor instead.

func (*PutItemRequest) GetContainerId

func (x *PutItemRequest) GetContainerId() uint32

func (*PutItemRequest) GetItemId

func (x *PutItemRequest) GetItemId() uint32

func (*PutItemRequest) GetSlot

func (x *PutItemRequest) GetSlot() int32

func (*PutItemRequest) GetWhere

func (m *PutItemRequest) GetWhere() isPutItemRequest_Where

func (*PutItemRequest) ProtoMessage

func (*PutItemRequest) ProtoMessage()

func (*PutItemRequest) ProtoReflect added in v0.8.4

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

func (*PutItemRequest) Reset

func (x *PutItemRequest) Reset()

func (*PutItemRequest) String

func (x *PutItemRequest) String() string

func (*PutItemRequest) Validate

func (m *PutItemRequest) Validate() error

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

type PutItemRequestValidationError

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

PutItemRequestValidationError is the validation error returned by PutItemRequest.Validate if the designated constraints aren't met.

func (PutItemRequestValidationError) Cause

Cause function returns cause value.

func (PutItemRequestValidationError) Error

Error satisfies the builtin error interface

func (PutItemRequestValidationError) ErrorName

func (e PutItemRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PutItemRequestValidationError) Field

Field function returns field value.

func (PutItemRequestValidationError) Key

Key function returns key value.

func (PutItemRequestValidationError) Reason

Reason function returns reason value.

type PutItemRequest_Slot

type PutItemRequest_Slot struct {
	//Position used for sorting items
	Slot int32 `protobuf:"varint,3,opt,name=slot,proto3,oneof"`
}

type PutItemResponse

type PutItemResponse struct {

	//Container with items inside.
	InsideItem *InsideItem `protobuf:"bytes,1,opt,name=inside_item,json=insideItem,proto3" json:"inside_item,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.PutItem`

func (*PutItemResponse) Descriptor deprecated

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

Deprecated: Use PutItemResponse.ProtoReflect.Descriptor instead.

func (*PutItemResponse) GetInsideItem

func (x *PutItemResponse) GetInsideItem() *InsideItem

func (*PutItemResponse) ProtoMessage

func (*PutItemResponse) ProtoMessage()

func (*PutItemResponse) ProtoReflect added in v0.8.4

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

func (*PutItemResponse) Reset

func (x *PutItemResponse) Reset()

func (*PutItemResponse) String

func (x *PutItemResponse) String() string

func (*PutItemResponse) Validate

func (m *PutItemResponse) Validate() error

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

type PutItemResponseValidationError

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

PutItemResponseValidationError is the validation error returned by PutItemResponse.Validate if the designated constraints aren't met.

func (PutItemResponseValidationError) Cause

Cause function returns cause value.

func (PutItemResponseValidationError) Error

Error satisfies the builtin error interface

func (PutItemResponseValidationError) ErrorName

func (e PutItemResponseValidationError) ErrorName() string

ErrorName returns error name.

func (PutItemResponseValidationError) Field

Field function returns field value.

func (PutItemResponseValidationError) Key

Key function returns key value.

func (PutItemResponseValidationError) Reason

Reason function returns reason value.

type SortItemsRequest

type SortItemsRequest struct {

	//ID of the container which contain items.
	ContainerId uint32 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	//Sorting mode.
	SortBy SortingMode `protobuf:"varint,2,opt,name=sort_by,json=sortBy,proto3,enum=mruv.items.SortingMode" json:"sort_by,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.SortItems`.

func (*SortItemsRequest) Descriptor deprecated

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

Deprecated: Use SortItemsRequest.ProtoReflect.Descriptor instead.

func (*SortItemsRequest) GetContainerId

func (x *SortItemsRequest) GetContainerId() uint32

func (*SortItemsRequest) GetSortBy

func (x *SortItemsRequest) GetSortBy() SortingMode

func (*SortItemsRequest) ProtoMessage

func (*SortItemsRequest) ProtoMessage()

func (*SortItemsRequest) ProtoReflect added in v0.8.4

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

func (*SortItemsRequest) Reset

func (x *SortItemsRequest) Reset()

func (*SortItemsRequest) String

func (x *SortItemsRequest) String() string

func (*SortItemsRequest) Validate

func (m *SortItemsRequest) Validate() error

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

type SortItemsRequestValidationError

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

SortItemsRequestValidationError is the validation error returned by SortItemsRequest.Validate if the designated constraints aren't met.

func (SortItemsRequestValidationError) Cause

Cause function returns cause value.

func (SortItemsRequestValidationError) Error

Error satisfies the builtin error interface

func (SortItemsRequestValidationError) ErrorName

ErrorName returns error name.

func (SortItemsRequestValidationError) Field

Field function returns field value.

func (SortItemsRequestValidationError) Key

Key function returns key value.

func (SortItemsRequestValidationError) Reason

Reason function returns reason value.

type SortItemsResponse

type SortItemsResponse struct {

	//Container with sorted items inside.
	Container *Container `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.SortItems`.

func (*SortItemsResponse) Descriptor deprecated

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

Deprecated: Use SortItemsResponse.ProtoReflect.Descriptor instead.

func (*SortItemsResponse) GetContainer

func (x *SortItemsResponse) GetContainer() *Container

func (*SortItemsResponse) ProtoMessage

func (*SortItemsResponse) ProtoMessage()

func (*SortItemsResponse) ProtoReflect added in v0.8.4

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

func (*SortItemsResponse) Reset

func (x *SortItemsResponse) Reset()

func (*SortItemsResponse) String

func (x *SortItemsResponse) String() string

func (*SortItemsResponse) Validate

func (m *SortItemsResponse) Validate() error

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

type SortItemsResponseValidationError

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

SortItemsResponseValidationError is the validation error returned by SortItemsResponse.Validate if the designated constraints aren't met.

func (SortItemsResponseValidationError) Cause

Cause function returns cause value.

func (SortItemsResponseValidationError) Error

Error satisfies the builtin error interface

func (SortItemsResponseValidationError) ErrorName

ErrorName returns error name.

func (SortItemsResponseValidationError) Field

Field function returns field value.

func (SortItemsResponseValidationError) Key

Key function returns key value.

func (SortItemsResponseValidationError) Reason

Reason function returns reason value.

type SortingMode

type SortingMode int32

Sorting modes for container items.

const (
	//undefined behaviour
	SortingMode_UNKNOWN SortingMode = 0
	//sort by weight descending
	SortingMode_WEIGHT_DESC SortingMode = 1
	//sort by weight ascending
	SortingMode_WEIGHT_ASC SortingMode = 2
	//sort by volume descending
	SortingMode_VOLUME_DESC SortingMode = 3
	//sort by volume ascending
	SortingMode_VOLUME_ASC SortingMode = 4
)

func (SortingMode) Descriptor added in v0.8.4

func (SortingMode) Enum added in v0.8.4

func (x SortingMode) Enum() *SortingMode

func (SortingMode) EnumDescriptor deprecated

func (SortingMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortingMode.Descriptor instead.

func (SortingMode) Number added in v0.8.4

func (x SortingMode) Number() protoreflect.EnumNumber

func (SortingMode) String

func (x SortingMode) String() string

func (SortingMode) Type added in v0.8.4

type UnimplementedMruVItemServiceServer

type UnimplementedMruVItemServiceServer struct {
}

UnimplementedMruVItemServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMruVItemServiceServer) CreateContainer

func (*UnimplementedMruVItemServiceServer) CreateContainerType

func (*UnimplementedMruVItemServiceServer) CreateItem

func (*UnimplementedMruVItemServiceServer) CreateItemType

func (*UnimplementedMruVItemServiceServer) DeleteContainer

func (*UnimplementedMruVItemServiceServer) DeleteContainerType

func (*UnimplementedMruVItemServiceServer) DeleteItem

func (*UnimplementedMruVItemServiceServer) DeleteItemType

func (*UnimplementedMruVItemServiceServer) GetContainer

func (*UnimplementedMruVItemServiceServer) GetContainerItems

func (*UnimplementedMruVItemServiceServer) GetContainerType

func (*UnimplementedMruVItemServiceServer) GetContainerTypes

func (*UnimplementedMruVItemServiceServer) GetContainers

func (*UnimplementedMruVItemServiceServer) GetItem

func (*UnimplementedMruVItemServiceServer) GetItemType

func (*UnimplementedMruVItemServiceServer) GetItemTypes

func (*UnimplementedMruVItemServiceServer) GetItems

func (*UnimplementedMruVItemServiceServer) GetNearestItems

func (*UnimplementedMruVItemServiceServer) GetServiceStatus

func (*UnimplementedMruVItemServiceServer) GetServiceVersion

func (*UnimplementedMruVItemServiceServer) PullItem

func (*UnimplementedMruVItemServiceServer) PutItem

func (*UnimplementedMruVItemServiceServer) SortItems

func (*UnimplementedMruVItemServiceServer) UseItem

type UseItemRequest

type UseItemRequest struct {
	ItemId uint32 `protobuf:"varint,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for `MruVItemsService.UseItem`.

func (*UseItemRequest) Descriptor deprecated

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

Deprecated: Use UseItemRequest.ProtoReflect.Descriptor instead.

func (*UseItemRequest) GetItemId

func (x *UseItemRequest) GetItemId() uint32

func (*UseItemRequest) ProtoMessage

func (*UseItemRequest) ProtoMessage()

func (*UseItemRequest) ProtoReflect added in v0.8.4

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

func (*UseItemRequest) Reset

func (x *UseItemRequest) Reset()

func (*UseItemRequest) String

func (x *UseItemRequest) String() string

func (*UseItemRequest) Validate

func (m *UseItemRequest) Validate() error

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

type UseItemRequestValidationError

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

UseItemRequestValidationError is the validation error returned by UseItemRequest.Validate if the designated constraints aren't met.

func (UseItemRequestValidationError) Cause

Cause function returns cause value.

func (UseItemRequestValidationError) Error

Error satisfies the builtin error interface

func (UseItemRequestValidationError) ErrorName

func (e UseItemRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UseItemRequestValidationError) Field

Field function returns field value.

func (UseItemRequestValidationError) Key

Key function returns key value.

func (UseItemRequestValidationError) Reason

Reason function returns reason value.

type UseItemResponse

type UseItemResponse struct {

	//Is item usage was successful.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

Response message for `MruVItemsService.UseItem`.

func (*UseItemResponse) Descriptor deprecated

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

Deprecated: Use UseItemResponse.ProtoReflect.Descriptor instead.

func (*UseItemResponse) GetSuccess

func (x *UseItemResponse) GetSuccess() bool

func (*UseItemResponse) ProtoMessage

func (*UseItemResponse) ProtoMessage()

func (*UseItemResponse) ProtoReflect added in v0.8.4

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

func (*UseItemResponse) Reset

func (x *UseItemResponse) Reset()

func (*UseItemResponse) String

func (x *UseItemResponse) String() string

func (*UseItemResponse) Validate

func (m *UseItemResponse) Validate() error

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

type UseItemResponseValidationError

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

UseItemResponseValidationError is the validation error returned by UseItemResponse.Validate if the designated constraints aren't met.

func (UseItemResponseValidationError) Cause

Cause function returns cause value.

func (UseItemResponseValidationError) Error

Error satisfies the builtin error interface

func (UseItemResponseValidationError) ErrorName

func (e UseItemResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UseItemResponseValidationError) Field

Field function returns field value.

func (UseItemResponseValidationError) Key

Key function returns key value.

func (UseItemResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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