Documentation ¶
Overview ¶
Package items is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVItemServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVItemServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVItemServiceClient) error
- func RegisterMruVItemServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVItemServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVItemServiceServer) error
- func RegisterMruVItemServiceServer(s *grpc.Server, srv MruVItemServiceServer)
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetId() uint32
- func (x *Container) GetItemId() uint32
- func (x *Container) GetItems() []*InsideItem
- func (x *Container) GetItemsInside() uint32
- func (x *Container) GetTypeId() uint32
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- func (m *Container) Validate() error
- type ContainerID
- type ContainerIDValidationError
- func (e ContainerIDValidationError) Cause() error
- func (e ContainerIDValidationError) Error() string
- func (e ContainerIDValidationError) ErrorName() string
- func (e ContainerIDValidationError) Field() string
- func (e ContainerIDValidationError) Key() bool
- func (e ContainerIDValidationError) Reason() string
- type ContainerType
- func (*ContainerType) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerType) GetContainerItemTypeId() uint32
- func (x *ContainerType) GetId() uint32
- func (x *ContainerType) GetMaxNumber() uint32
- func (x *ContainerType) GetMaxVolume() float32
- func (x *ContainerType) GetMaxWeight() float32
- func (x *ContainerType) GetValidItemTypes() []int64
- func (*ContainerType) ProtoMessage()
- func (x *ContainerType) ProtoReflect() protoreflect.Message
- func (x *ContainerType) Reset()
- func (x *ContainerType) String() string
- func (m *ContainerType) Validate() error
- type ContainerTypeID
- func (*ContainerTypeID) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerTypeID) GetId() uint32
- func (*ContainerTypeID) ProtoMessage()
- func (x *ContainerTypeID) ProtoReflect() protoreflect.Message
- func (x *ContainerTypeID) Reset()
- func (x *ContainerTypeID) String() string
- func (m *ContainerTypeID) Validate() error
- type ContainerTypeIDValidationError
- func (e ContainerTypeIDValidationError) Cause() error
- func (e ContainerTypeIDValidationError) Error() string
- func (e ContainerTypeIDValidationError) ErrorName() string
- func (e ContainerTypeIDValidationError) Field() string
- func (e ContainerTypeIDValidationError) Key() bool
- func (e ContainerTypeIDValidationError) Reason() string
- type ContainerTypeValidationError
- func (e ContainerTypeValidationError) Cause() error
- func (e ContainerTypeValidationError) Error() string
- func (e ContainerTypeValidationError) ErrorName() string
- func (e ContainerTypeValidationError) Field() string
- func (e ContainerTypeValidationError) Key() bool
- func (e ContainerTypeValidationError) Reason() string
- type ContainerValidationError
- type GetContainerItemsRequest
- func (*GetContainerItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContainerItemsRequest) GetContainerId() uint32
- func (x *GetContainerItemsRequest) GetLimit() uint32
- func (*GetContainerItemsRequest) ProtoMessage()
- func (x *GetContainerItemsRequest) ProtoReflect() protoreflect.Message
- func (x *GetContainerItemsRequest) Reset()
- func (x *GetContainerItemsRequest) String() string
- func (m *GetContainerItemsRequest) Validate() error
- type GetContainerItemsRequestValidationError
- func (e GetContainerItemsRequestValidationError) Cause() error
- func (e GetContainerItemsRequestValidationError) Error() string
- func (e GetContainerItemsRequestValidationError) ErrorName() string
- func (e GetContainerItemsRequestValidationError) Field() string
- func (e GetContainerItemsRequestValidationError) Key() bool
- func (e GetContainerItemsRequestValidationError) Reason() string
- type GetContainerItemsResponse
- func (*GetContainerItemsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContainerItemsResponse) GetItems() []*InsideItem
- func (*GetContainerItemsResponse) ProtoMessage()
- func (x *GetContainerItemsResponse) ProtoReflect() protoreflect.Message
- func (x *GetContainerItemsResponse) Reset()
- func (x *GetContainerItemsResponse) String() string
- func (m *GetContainerItemsResponse) Validate() error
- type GetContainerItemsResponseValidationError
- func (e GetContainerItemsResponseValidationError) Cause() error
- func (e GetContainerItemsResponseValidationError) Error() string
- func (e GetContainerItemsResponseValidationError) ErrorName() string
- func (e GetContainerItemsResponseValidationError) Field() string
- func (e GetContainerItemsResponseValidationError) Key() bool
- func (e GetContainerItemsResponseValidationError) Reason() string
- type GetContainerTypesRequest
- func (*GetContainerTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContainerTypesRequest) GetLimit() uint32
- func (*GetContainerTypesRequest) ProtoMessage()
- func (x *GetContainerTypesRequest) ProtoReflect() protoreflect.Message
- func (x *GetContainerTypesRequest) Reset()
- func (x *GetContainerTypesRequest) String() string
- func (m *GetContainerTypesRequest) Validate() error
- type GetContainerTypesRequestValidationError
- func (e GetContainerTypesRequestValidationError) Cause() error
- func (e GetContainerTypesRequestValidationError) Error() string
- func (e GetContainerTypesRequestValidationError) ErrorName() string
- func (e GetContainerTypesRequestValidationError) Field() string
- func (e GetContainerTypesRequestValidationError) Key() bool
- func (e GetContainerTypesRequestValidationError) Reason() string
- type GetContainerTypesResponse
- func (*GetContainerTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContainerTypesResponse) GetContainerTypes() []*ContainerType
- func (*GetContainerTypesResponse) ProtoMessage()
- func (x *GetContainerTypesResponse) ProtoReflect() protoreflect.Message
- func (x *GetContainerTypesResponse) Reset()
- func (x *GetContainerTypesResponse) String() string
- func (m *GetContainerTypesResponse) Validate() error
- type GetContainerTypesResponseValidationError
- func (e GetContainerTypesResponseValidationError) Cause() error
- func (e GetContainerTypesResponseValidationError) Error() string
- func (e GetContainerTypesResponseValidationError) ErrorName() string
- func (e GetContainerTypesResponseValidationError) Field() string
- func (e GetContainerTypesResponseValidationError) Key() bool
- func (e GetContainerTypesResponseValidationError) Reason() string
- type GetContainersRequest
- func (*GetContainersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContainersRequest) GetLimit() uint32
- func (*GetContainersRequest) ProtoMessage()
- func (x *GetContainersRequest) ProtoReflect() protoreflect.Message
- func (x *GetContainersRequest) Reset()
- func (x *GetContainersRequest) String() string
- func (m *GetContainersRequest) Validate() error
- type GetContainersRequestValidationError
- func (e GetContainersRequestValidationError) Cause() error
- func (e GetContainersRequestValidationError) Error() string
- func (e GetContainersRequestValidationError) ErrorName() string
- func (e GetContainersRequestValidationError) Field() string
- func (e GetContainersRequestValidationError) Key() bool
- func (e GetContainersRequestValidationError) Reason() string
- type GetContainersResponse
- func (*GetContainersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContainersResponse) GetContainers() []*Container
- func (*GetContainersResponse) ProtoMessage()
- func (x *GetContainersResponse) ProtoReflect() protoreflect.Message
- func (x *GetContainersResponse) Reset()
- func (x *GetContainersResponse) String() string
- func (m *GetContainersResponse) Validate() error
- type GetContainersResponseValidationError
- func (e GetContainersResponseValidationError) Cause() error
- func (e GetContainersResponseValidationError) Error() string
- func (e GetContainersResponseValidationError) ErrorName() string
- func (e GetContainersResponseValidationError) Field() string
- func (e GetContainersResponseValidationError) Key() bool
- func (e GetContainersResponseValidationError) Reason() string
- type GetItemTypesRequest
- func (*GetItemTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemTypesRequest) GetLimit() uint32
- func (*GetItemTypesRequest) ProtoMessage()
- func (x *GetItemTypesRequest) ProtoReflect() protoreflect.Message
- func (x *GetItemTypesRequest) Reset()
- func (x *GetItemTypesRequest) String() string
- func (m *GetItemTypesRequest) Validate() error
- type GetItemTypesRequestValidationError
- func (e GetItemTypesRequestValidationError) Cause() error
- func (e GetItemTypesRequestValidationError) Error() string
- func (e GetItemTypesRequestValidationError) ErrorName() string
- func (e GetItemTypesRequestValidationError) Field() string
- func (e GetItemTypesRequestValidationError) Key() bool
- func (e GetItemTypesRequestValidationError) Reason() string
- type GetItemTypesResponse
- func (*GetItemTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemTypesResponse) GetItemTypes() []*ItemType
- func (*GetItemTypesResponse) ProtoMessage()
- func (x *GetItemTypesResponse) ProtoReflect() protoreflect.Message
- func (x *GetItemTypesResponse) Reset()
- func (x *GetItemTypesResponse) String() string
- func (m *GetItemTypesResponse) Validate() error
- type GetItemTypesResponseValidationError
- func (e GetItemTypesResponseValidationError) Cause() error
- func (e GetItemTypesResponseValidationError) Error() string
- func (e GetItemTypesResponseValidationError) ErrorName() string
- func (e GetItemTypesResponseValidationError) Field() string
- func (e GetItemTypesResponseValidationError) Key() bool
- func (e GetItemTypesResponseValidationError) Reason() string
- type GetItemsRequest
- func (*GetItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemsRequest) GetLimit() uint32
- func (*GetItemsRequest) ProtoMessage()
- func (x *GetItemsRequest) ProtoReflect() protoreflect.Message
- func (x *GetItemsRequest) Reset()
- func (x *GetItemsRequest) String() string
- func (m *GetItemsRequest) Validate() error
- type GetItemsRequestValidationError
- func (e GetItemsRequestValidationError) Cause() error
- func (e GetItemsRequestValidationError) Error() string
- func (e GetItemsRequestValidationError) ErrorName() string
- func (e GetItemsRequestValidationError) Field() string
- func (e GetItemsRequestValidationError) Key() bool
- func (e GetItemsRequestValidationError) Reason() string
- type GetItemsResponse
- func (*GetItemsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemsResponse) GetItems() []*Item
- func (*GetItemsResponse) ProtoMessage()
- func (x *GetItemsResponse) ProtoReflect() protoreflect.Message
- func (x *GetItemsResponse) Reset()
- func (x *GetItemsResponse) String() string
- func (m *GetItemsResponse) Validate() error
- type GetItemsResponseValidationError
- func (e GetItemsResponseValidationError) Cause() error
- func (e GetItemsResponseValidationError) Error() string
- func (e GetItemsResponseValidationError) ErrorName() string
- func (e GetItemsResponseValidationError) Field() string
- func (e GetItemsResponseValidationError) Key() bool
- func (e GetItemsResponseValidationError) Reason() string
- type GetNearestItemsRequest
- func (*GetNearestItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNearestItemsRequest) GetContainerId() uint32
- func (x *GetNearestItemsRequest) GetDistanceLimit() float64
- func (x *GetNearestItemsRequest) GetPosition() *common.Position
- func (*GetNearestItemsRequest) ProtoMessage()
- func (x *GetNearestItemsRequest) ProtoReflect() protoreflect.Message
- func (x *GetNearestItemsRequest) Reset()
- func (x *GetNearestItemsRequest) String() string
- func (m *GetNearestItemsRequest) Validate() error
- type GetNearestItemsRequestValidationError
- func (e GetNearestItemsRequestValidationError) Cause() error
- func (e GetNearestItemsRequestValidationError) Error() string
- func (e GetNearestItemsRequestValidationError) ErrorName() string
- func (e GetNearestItemsRequestValidationError) Field() string
- func (e GetNearestItemsRequestValidationError) Key() bool
- func (e GetNearestItemsRequestValidationError) Reason() string
- type GetNearestItemsResponse
- func (*GetNearestItemsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNearestItemsResponse) GetItem() []*InsideItem
- func (*GetNearestItemsResponse) ProtoMessage()
- func (x *GetNearestItemsResponse) ProtoReflect() protoreflect.Message
- func (x *GetNearestItemsResponse) Reset()
- func (x *GetNearestItemsResponse) String() string
- func (m *GetNearestItemsResponse) Validate() error
- type GetNearestItemsResponseValidationError
- func (e GetNearestItemsResponseValidationError) Cause() error
- func (e GetNearestItemsResponseValidationError) Error() string
- func (e GetNearestItemsResponseValidationError) ErrorName() string
- func (e GetNearestItemsResponseValidationError) Field() string
- func (e GetNearestItemsResponseValidationError) Key() bool
- func (e GetNearestItemsResponseValidationError) Reason() string
- type InsideItem
- func (*InsideItem) Descriptor() ([]byte, []int)deprecated
- func (x *InsideItem) GetContainerId() uint32
- func (x *InsideItem) GetItem() *Item
- func (x *InsideItem) GetItemId() uint32
- func (m *InsideItem) GetItemOrId() isInsideItem_ItemOrId
- func (x *InsideItem) GetPosition() int32
- func (*InsideItem) ProtoMessage()
- func (x *InsideItem) ProtoReflect() protoreflect.Message
- func (x *InsideItem) Reset()
- func (x *InsideItem) String() string
- func (m *InsideItem) Validate() error
- type InsideItemValidationError
- type InsideItem_Item
- type InsideItem_ItemId
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetId() uint32
- func (x *Item) GetItemTypeId() uint32
- func (x *Item) GetVolume() float32
- func (x *Item) GetWeight() float32
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- func (m *Item) Validate() error
- type ItemID
- type ItemIDValidationError
- type ItemType
- func (*ItemType) Descriptor() ([]byte, []int)deprecated
- func (x *ItemType) GetBaseVolume() float32
- func (x *ItemType) GetBaseWeight() float32
- func (x *ItemType) GetDescription() string
- func (x *ItemType) GetId() uint32
- func (x *ItemType) GetModelHash() int32
- func (x *ItemType) GetModelName() string
- func (x *ItemType) GetName() string
- func (*ItemType) ProtoMessage()
- func (x *ItemType) ProtoReflect() protoreflect.Message
- func (x *ItemType) Reset()
- func (x *ItemType) String() string
- func (m *ItemType) Validate() error
- type ItemTypeID
- type ItemTypeIDValidationError
- type ItemTypeValidationError
- type ItemValidationError
- type MruVItemServiceClient
- type MruVItemServiceServer
- type PullItemRequest
- func (*PullItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PullItemRequest) GetContainerId() uint32
- func (x *PullItemRequest) GetItemId() uint32
- func (*PullItemRequest) ProtoMessage()
- func (x *PullItemRequest) ProtoReflect() protoreflect.Message
- func (x *PullItemRequest) Reset()
- func (x *PullItemRequest) String() string
- func (m *PullItemRequest) Validate() error
- type PullItemRequestValidationError
- func (e PullItemRequestValidationError) Cause() error
- func (e PullItemRequestValidationError) Error() string
- func (e PullItemRequestValidationError) ErrorName() string
- func (e PullItemRequestValidationError) Field() string
- func (e PullItemRequestValidationError) Key() bool
- func (e PullItemRequestValidationError) Reason() string
- type PutItemRequest
- func (*PutItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutItemRequest) GetContainerId() uint32
- func (x *PutItemRequest) GetItemId() uint32
- func (x *PutItemRequest) GetSlot() int32
- func (m *PutItemRequest) GetWhere() isPutItemRequest_Where
- func (*PutItemRequest) ProtoMessage()
- func (x *PutItemRequest) ProtoReflect() protoreflect.Message
- func (x *PutItemRequest) Reset()
- func (x *PutItemRequest) String() string
- func (m *PutItemRequest) Validate() error
- type PutItemRequestValidationError
- func (e PutItemRequestValidationError) Cause() error
- func (e PutItemRequestValidationError) Error() string
- func (e PutItemRequestValidationError) ErrorName() string
- func (e PutItemRequestValidationError) Field() string
- func (e PutItemRequestValidationError) Key() bool
- func (e PutItemRequestValidationError) Reason() string
- type PutItemRequest_Slot
- type PutItemResponse
- func (*PutItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PutItemResponse) GetInsideItem() *InsideItem
- func (*PutItemResponse) ProtoMessage()
- func (x *PutItemResponse) ProtoReflect() protoreflect.Message
- func (x *PutItemResponse) Reset()
- func (x *PutItemResponse) String() string
- func (m *PutItemResponse) Validate() error
- type PutItemResponseValidationError
- func (e PutItemResponseValidationError) Cause() error
- func (e PutItemResponseValidationError) Error() string
- func (e PutItemResponseValidationError) ErrorName() string
- func (e PutItemResponseValidationError) Field() string
- func (e PutItemResponseValidationError) Key() bool
- func (e PutItemResponseValidationError) Reason() string
- type SortItemsRequest
- func (*SortItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SortItemsRequest) GetContainerId() uint32
- func (x *SortItemsRequest) GetSortBy() SortingMode
- func (*SortItemsRequest) ProtoMessage()
- func (x *SortItemsRequest) ProtoReflect() protoreflect.Message
- func (x *SortItemsRequest) Reset()
- func (x *SortItemsRequest) String() string
- func (m *SortItemsRequest) Validate() error
- type SortItemsRequestValidationError
- func (e SortItemsRequestValidationError) Cause() error
- func (e SortItemsRequestValidationError) Error() string
- func (e SortItemsRequestValidationError) ErrorName() string
- func (e SortItemsRequestValidationError) Field() string
- func (e SortItemsRequestValidationError) Key() bool
- func (e SortItemsRequestValidationError) Reason() string
- type SortItemsResponse
- func (*SortItemsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SortItemsResponse) GetContainer() *Container
- func (*SortItemsResponse) ProtoMessage()
- func (x *SortItemsResponse) ProtoReflect() protoreflect.Message
- func (x *SortItemsResponse) Reset()
- func (x *SortItemsResponse) String() string
- func (m *SortItemsResponse) Validate() error
- type SortItemsResponseValidationError
- func (e SortItemsResponseValidationError) Cause() error
- func (e SortItemsResponseValidationError) Error() string
- func (e SortItemsResponseValidationError) ErrorName() string
- func (e SortItemsResponseValidationError) Field() string
- func (e SortItemsResponseValidationError) Key() bool
- func (e SortItemsResponseValidationError) Reason() string
- type SortingMode
- func (SortingMode) Descriptor() protoreflect.EnumDescriptor
- func (x SortingMode) Enum() *SortingMode
- func (SortingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortingMode) Number() protoreflect.EnumNumber
- func (x SortingMode) String() string
- func (SortingMode) Type() protoreflect.EnumType
- type UnimplementedMruVItemServiceServer
- func (*UnimplementedMruVItemServiceServer) CreateContainer(context.Context, *Container) (*ContainerID, error)
- func (*UnimplementedMruVItemServiceServer) CreateContainerType(context.Context, *ContainerType) (*ContainerTypeID, error)
- func (*UnimplementedMruVItemServiceServer) CreateItem(context.Context, *Item) (*ItemID, error)
- func (*UnimplementedMruVItemServiceServer) CreateItemType(context.Context, *ItemType) (*ItemTypeID, error)
- func (*UnimplementedMruVItemServiceServer) DeleteContainer(context.Context, *ContainerID) (*ContainerID, error)
- func (*UnimplementedMruVItemServiceServer) DeleteContainerType(context.Context, *ContainerTypeID) (*ContainerTypeID, error)
- func (*UnimplementedMruVItemServiceServer) DeleteItem(context.Context, *ItemID) (*ItemID, error)
- func (*UnimplementedMruVItemServiceServer) DeleteItemType(context.Context, *ItemTypeID) (*ItemTypeID, error)
- func (*UnimplementedMruVItemServiceServer) GetContainer(context.Context, *ContainerID) (*Container, error)
- func (*UnimplementedMruVItemServiceServer) GetContainerItems(context.Context, *GetContainerItemsRequest) (*GetContainerItemsResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetContainerType(context.Context, *ContainerTypeID) (*ContainerType, error)
- func (*UnimplementedMruVItemServiceServer) GetContainerTypes(context.Context, *GetContainerTypesRequest) (*GetContainerTypesResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetContainers(context.Context, *GetContainersRequest) (*GetContainersResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetItem(context.Context, *ItemID) (*Item, error)
- func (*UnimplementedMruVItemServiceServer) GetItemType(context.Context, *ItemTypeID) (*ItemType, error)
- func (*UnimplementedMruVItemServiceServer) GetItemTypes(context.Context, *GetItemTypesRequest) (*GetItemTypesResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetItems(context.Context, *GetItemsRequest) (*GetItemsResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetNearestItems(context.Context, *GetNearestItemsRequest) (*GetNearestItemsResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetServiceStatus(context.Context, *common.ServiceStatusRequest) (*common.ServiceStatusResponse, error)
- func (*UnimplementedMruVItemServiceServer) GetServiceVersion(context.Context, *common.VersionRequest) (*common.VersionResponse, error)
- func (*UnimplementedMruVItemServiceServer) PullItem(context.Context, *PullItemRequest) (*Item, error)
- func (*UnimplementedMruVItemServiceServer) PutItem(context.Context, *PutItemRequest) (*PutItemResponse, error)
- func (*UnimplementedMruVItemServiceServer) SortItems(context.Context, *SortItemsRequest) (*SortItemsResponse, error)
- func (*UnimplementedMruVItemServiceServer) UseItem(context.Context, *UseItemRequest) (*UseItemResponse, error)
- type UseItemRequest
- func (*UseItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UseItemRequest) GetItemId() uint32
- func (*UseItemRequest) ProtoMessage()
- func (x *UseItemRequest) ProtoReflect() protoreflect.Message
- func (x *UseItemRequest) Reset()
- func (x *UseItemRequest) String() string
- func (m *UseItemRequest) Validate() error
- type UseItemRequestValidationError
- func (e UseItemRequestValidationError) Cause() error
- func (e UseItemRequestValidationError) Error() string
- func (e UseItemRequestValidationError) ErrorName() string
- func (e UseItemRequestValidationError) Field() string
- func (e UseItemRequestValidationError) Key() bool
- func (e UseItemRequestValidationError) Reason() string
- type UseItemResponse
- func (*UseItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UseItemResponse) GetSuccess() bool
- func (*UseItemResponse) ProtoMessage()
- func (x *UseItemResponse) ProtoReflect() protoreflect.Message
- func (x *UseItemResponse) Reset()
- func (x *UseItemResponse) String() string
- func (m *UseItemResponse) Validate() error
- type UseItemResponseValidationError
- func (e UseItemResponseValidationError) Cause() error
- func (e UseItemResponseValidationError) Error() string
- func (e UseItemResponseValidationError) ErrorName() string
- func (e UseItemResponseValidationError) Field() string
- func (e UseItemResponseValidationError) Key() bool
- func (e UseItemResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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.
var File_items_items_model_proto protoreflect.FileDescriptor
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) GetItems ¶
func (x *Container) GetItems() []*InsideItem
func (*Container) GetItemsInside ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶ added in v0.8.4
func (x *Container) ProtoReflect() protoreflect.Message
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 ¶
func (e ContainerIDValidationError) Cause() error
Cause function returns cause value.
func (ContainerIDValidationError) Error ¶
func (e ContainerIDValidationError) Error() string
Error satisfies the builtin error interface
func (ContainerIDValidationError) ErrorName ¶
func (e ContainerIDValidationError) ErrorName() string
ErrorName returns error name.
func (ContainerIDValidationError) Field ¶
func (e ContainerIDValidationError) Field() string
Field function returns field value.
func (ContainerIDValidationError) Key ¶
func (e ContainerIDValidationError) Key() bool
Key function returns key value.
func (ContainerIDValidationError) Reason ¶
func (e ContainerIDValidationError) Reason() string
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 ¶
func (e ContainerTypeIDValidationError) Cause() error
Cause function returns cause value.
func (ContainerTypeIDValidationError) Error ¶
func (e ContainerTypeIDValidationError) Error() string
Error satisfies the builtin error interface
func (ContainerTypeIDValidationError) ErrorName ¶
func (e ContainerTypeIDValidationError) ErrorName() string
ErrorName returns error name.
func (ContainerTypeIDValidationError) Field ¶
func (e ContainerTypeIDValidationError) Field() string
Field function returns field value.
func (ContainerTypeIDValidationError) Key ¶
func (e ContainerTypeIDValidationError) Key() bool
Key function returns key value.
func (ContainerTypeIDValidationError) Reason ¶
func (e ContainerTypeIDValidationError) Reason() string
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 ¶
func (e ContainerTypeValidationError) Cause() error
Cause function returns cause value.
func (ContainerTypeValidationError) Error ¶
func (e ContainerTypeValidationError) Error() string
Error satisfies the builtin error interface
func (ContainerTypeValidationError) ErrorName ¶
func (e ContainerTypeValidationError) ErrorName() string
ErrorName returns error name.
func (ContainerTypeValidationError) Field ¶
func (e ContainerTypeValidationError) Field() string
Field function returns field value.
func (ContainerTypeValidationError) Key ¶
func (e ContainerTypeValidationError) Key() bool
Key function returns key value.
func (ContainerTypeValidationError) Reason ¶
func (e ContainerTypeValidationError) Reason() string
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 ¶
func (e ContainerValidationError) Key() bool
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 ¶
func (e GetContainerItemsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetContainerItemsRequestValidationError) Error ¶
func (e GetContainerItemsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetContainerItemsRequestValidationError) ErrorName ¶
func (e GetContainerItemsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetContainerItemsRequestValidationError) Field ¶
func (e GetContainerItemsRequestValidationError) Field() string
Field function returns field value.
func (GetContainerItemsRequestValidationError) Key ¶
func (e GetContainerItemsRequestValidationError) Key() bool
Key function returns key value.
func (GetContainerItemsRequestValidationError) Reason ¶
func (e GetContainerItemsRequestValidationError) Reason() string
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 (x *GetContainerItemsResponse) ProtoReflect() protoreflect.Message
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 ¶
func (e GetContainerItemsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetContainerItemsResponseValidationError) Error ¶
func (e GetContainerItemsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetContainerItemsResponseValidationError) ErrorName ¶
func (e GetContainerItemsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetContainerItemsResponseValidationError) Field ¶
func (e GetContainerItemsResponseValidationError) Field() string
Field function returns field value.
func (GetContainerItemsResponseValidationError) Key ¶
func (e GetContainerItemsResponseValidationError) Key() bool
Key function returns key value.
func (GetContainerItemsResponseValidationError) Reason ¶
func (e GetContainerItemsResponseValidationError) Reason() string
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 ¶
func (e GetContainerTypesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetContainerTypesRequestValidationError) Error ¶
func (e GetContainerTypesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetContainerTypesRequestValidationError) ErrorName ¶
func (e GetContainerTypesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetContainerTypesRequestValidationError) Field ¶
func (e GetContainerTypesRequestValidationError) Field() string
Field function returns field value.
func (GetContainerTypesRequestValidationError) Key ¶
func (e GetContainerTypesRequestValidationError) Key() bool
Key function returns key value.
func (GetContainerTypesRequestValidationError) Reason ¶
func (e GetContainerTypesRequestValidationError) Reason() string
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 (x *GetContainerTypesResponse) ProtoReflect() protoreflect.Message
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 ¶
func (e GetContainerTypesResponseValidationError) Cause() error
Cause function returns cause value.
func (GetContainerTypesResponseValidationError) Error ¶
func (e GetContainerTypesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetContainerTypesResponseValidationError) ErrorName ¶
func (e GetContainerTypesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetContainerTypesResponseValidationError) Field ¶
func (e GetContainerTypesResponseValidationError) Field() string
Field function returns field value.
func (GetContainerTypesResponseValidationError) Key ¶
func (e GetContainerTypesResponseValidationError) Key() bool
Key function returns key value.
func (GetContainerTypesResponseValidationError) Reason ¶
func (e GetContainerTypesResponseValidationError) Reason() string
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 ¶
func (e GetContainersRequestValidationError) Cause() error
Cause function returns cause value.
func (GetContainersRequestValidationError) Error ¶
func (e GetContainersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetContainersRequestValidationError) ErrorName ¶
func (e GetContainersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetContainersRequestValidationError) Field ¶
func (e GetContainersRequestValidationError) Field() string
Field function returns field value.
func (GetContainersRequestValidationError) Key ¶
func (e GetContainersRequestValidationError) Key() bool
Key function returns key value.
func (GetContainersRequestValidationError) Reason ¶
func (e GetContainersRequestValidationError) Reason() string
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 ¶
func (e GetContainersResponseValidationError) Cause() error
Cause function returns cause value.
func (GetContainersResponseValidationError) Error ¶
func (e GetContainersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetContainersResponseValidationError) ErrorName ¶
func (e GetContainersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetContainersResponseValidationError) Field ¶
func (e GetContainersResponseValidationError) Field() string
Field function returns field value.
func (GetContainersResponseValidationError) Key ¶
func (e GetContainersResponseValidationError) Key() bool
Key function returns key value.
func (GetContainersResponseValidationError) Reason ¶
func (e GetContainersResponseValidationError) Reason() string
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 ¶
func (e GetItemTypesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetItemTypesRequestValidationError) Error ¶
func (e GetItemTypesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetItemTypesRequestValidationError) ErrorName ¶
func (e GetItemTypesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetItemTypesRequestValidationError) Field ¶
func (e GetItemTypesRequestValidationError) Field() string
Field function returns field value.
func (GetItemTypesRequestValidationError) Key ¶
func (e GetItemTypesRequestValidationError) Key() bool
Key function returns key value.
func (GetItemTypesRequestValidationError) Reason ¶
func (e GetItemTypesRequestValidationError) Reason() string
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 ¶
func (e GetItemTypesResponseValidationError) Cause() error
Cause function returns cause value.
func (GetItemTypesResponseValidationError) Error ¶
func (e GetItemTypesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetItemTypesResponseValidationError) ErrorName ¶
func (e GetItemTypesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetItemTypesResponseValidationError) Field ¶
func (e GetItemTypesResponseValidationError) Field() string
Field function returns field value.
func (GetItemTypesResponseValidationError) Key ¶
func (e GetItemTypesResponseValidationError) Key() bool
Key function returns key value.
func (GetItemTypesResponseValidationError) Reason ¶
func (e GetItemTypesResponseValidationError) Reason() string
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 ¶
func (e GetItemsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetItemsRequestValidationError) Error ¶
func (e GetItemsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetItemsRequestValidationError) ErrorName ¶
func (e GetItemsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetItemsRequestValidationError) Field ¶
func (e GetItemsRequestValidationError) Field() string
Field function returns field value.
func (GetItemsRequestValidationError) Key ¶
func (e GetItemsRequestValidationError) Key() bool
Key function returns key value.
func (GetItemsRequestValidationError) Reason ¶
func (e GetItemsRequestValidationError) Reason() string
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 ¶
func (e GetItemsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetItemsResponseValidationError) Error ¶
func (e GetItemsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetItemsResponseValidationError) ErrorName ¶
func (e GetItemsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetItemsResponseValidationError) Field ¶
func (e GetItemsResponseValidationError) Field() string
Field function returns field value.
func (GetItemsResponseValidationError) Key ¶
func (e GetItemsResponseValidationError) Key() bool
Key function returns key value.
func (GetItemsResponseValidationError) Reason ¶
func (e GetItemsResponseValidationError) Reason() string
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 ¶
func (e GetNearestItemsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetNearestItemsRequestValidationError) Error ¶
func (e GetNearestItemsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetNearestItemsRequestValidationError) ErrorName ¶
func (e GetNearestItemsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetNearestItemsRequestValidationError) Field ¶
func (e GetNearestItemsRequestValidationError) Field() string
Field function returns field value.
func (GetNearestItemsRequestValidationError) Key ¶
func (e GetNearestItemsRequestValidationError) Key() bool
Key function returns key value.
func (GetNearestItemsRequestValidationError) Reason ¶
func (e GetNearestItemsRequestValidationError) Reason() string
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 ¶
func (e GetNearestItemsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetNearestItemsResponseValidationError) Error ¶
func (e GetNearestItemsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetNearestItemsResponseValidationError) ErrorName ¶
func (e GetNearestItemsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetNearestItemsResponseValidationError) Field ¶
func (e GetNearestItemsResponseValidationError) Field() string
Field function returns field value.
func (GetNearestItemsResponseValidationError) Key ¶
func (e GetNearestItemsResponseValidationError) Key() bool
Key function returns key value.
func (GetNearestItemsResponseValidationError) Reason ¶
func (e GetNearestItemsResponseValidationError) Reason() string
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 ¶
func (e InsideItemValidationError) Error() string
Error satisfies the builtin error interface
func (InsideItemValidationError) ErrorName ¶
func (e InsideItemValidationError) ErrorName() string
ErrorName returns error name.
func (InsideItemValidationError) Field ¶
func (e InsideItemValidationError) Field() string
Field function returns field value.
func (InsideItemValidationError) Key ¶
func (e InsideItemValidationError) Key() bool
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) GetItemTypeId ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶ added in v0.8.4
func (x *Item) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*ItemID) ProtoMessage()
func (*ItemID) ProtoReflect ¶ added in v0.8.4
func (x *ItemID) ProtoReflect() protoreflect.Message
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) GetBaseVolume ¶
func (*ItemType) GetBaseWeight ¶
func (*ItemType) GetDescription ¶
func (*ItemType) GetModelHash ¶
func (*ItemType) GetModelName ¶
func (*ItemType) ProtoMessage ¶
func (*ItemType) ProtoMessage()
func (*ItemType) ProtoReflect ¶ added in v0.8.4
func (x *ItemType) ProtoReflect() protoreflect.Message
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 ¶
func (e ItemTypeIDValidationError) Error() string
Error satisfies the builtin error interface
func (ItemTypeIDValidationError) ErrorName ¶
func (e ItemTypeIDValidationError) ErrorName() string
ErrorName returns error name.
func (ItemTypeIDValidationError) Field ¶
func (e ItemTypeIDValidationError) Field() string
Field function returns field value.
func (ItemTypeIDValidationError) Key ¶
func (e ItemTypeIDValidationError) Key() bool
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.
func NewMruVItemServiceClient ¶
func NewMruVItemServiceClient(cc grpc.ClientConnInterface) MruVItemServiceClient
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 ¶
func (e PullItemRequestValidationError) Cause() error
Cause function returns cause value.
func (PullItemRequestValidationError) Error ¶
func (e PullItemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PullItemRequestValidationError) ErrorName ¶
func (e PullItemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PullItemRequestValidationError) Field ¶
func (e PullItemRequestValidationError) Field() string
Field function returns field value.
func (PullItemRequestValidationError) Key ¶
func (e PullItemRequestValidationError) Key() bool
Key function returns key value.
func (PullItemRequestValidationError) Reason ¶
func (e PullItemRequestValidationError) Reason() string
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 ¶
func (e PutItemRequestValidationError) Cause() error
Cause function returns cause value.
func (PutItemRequestValidationError) Error ¶
func (e PutItemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PutItemRequestValidationError) ErrorName ¶
func (e PutItemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PutItemRequestValidationError) Field ¶
func (e PutItemRequestValidationError) Field() string
Field function returns field value.
func (PutItemRequestValidationError) Key ¶
func (e PutItemRequestValidationError) Key() bool
Key function returns key value.
func (PutItemRequestValidationError) Reason ¶
func (e PutItemRequestValidationError) Reason() string
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 ¶
func (e PutItemResponseValidationError) Cause() error
Cause function returns cause value.
func (PutItemResponseValidationError) Error ¶
func (e PutItemResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PutItemResponseValidationError) ErrorName ¶
func (e PutItemResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PutItemResponseValidationError) Field ¶
func (e PutItemResponseValidationError) Field() string
Field function returns field value.
func (PutItemResponseValidationError) Key ¶
func (e PutItemResponseValidationError) Key() bool
Key function returns key value.
func (PutItemResponseValidationError) Reason ¶
func (e PutItemResponseValidationError) Reason() string
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 ¶
func (e SortItemsRequestValidationError) Cause() error
Cause function returns cause value.
func (SortItemsRequestValidationError) Error ¶
func (e SortItemsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SortItemsRequestValidationError) ErrorName ¶
func (e SortItemsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SortItemsRequestValidationError) Field ¶
func (e SortItemsRequestValidationError) Field() string
Field function returns field value.
func (SortItemsRequestValidationError) Key ¶
func (e SortItemsRequestValidationError) Key() bool
Key function returns key value.
func (SortItemsRequestValidationError) Reason ¶
func (e SortItemsRequestValidationError) Reason() string
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 ¶
func (e SortItemsResponseValidationError) Cause() error
Cause function returns cause value.
func (SortItemsResponseValidationError) Error ¶
func (e SortItemsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SortItemsResponseValidationError) ErrorName ¶
func (e SortItemsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SortItemsResponseValidationError) Field ¶
func (e SortItemsResponseValidationError) Field() string
Field function returns field value.
func (SortItemsResponseValidationError) Key ¶
func (e SortItemsResponseValidationError) Key() bool
Key function returns key value.
func (SortItemsResponseValidationError) Reason ¶
func (e SortItemsResponseValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
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
func (SortingMode) Type() protoreflect.EnumType
type UnimplementedMruVItemServiceServer ¶
type UnimplementedMruVItemServiceServer struct { }
UnimplementedMruVItemServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVItemServiceServer) CreateContainer ¶
func (*UnimplementedMruVItemServiceServer) CreateContainer(context.Context, *Container) (*ContainerID, error)
func (*UnimplementedMruVItemServiceServer) CreateContainerType ¶
func (*UnimplementedMruVItemServiceServer) CreateContainerType(context.Context, *ContainerType) (*ContainerTypeID, error)
func (*UnimplementedMruVItemServiceServer) CreateItem ¶
func (*UnimplementedMruVItemServiceServer) CreateItemType ¶
func (*UnimplementedMruVItemServiceServer) CreateItemType(context.Context, *ItemType) (*ItemTypeID, error)
func (*UnimplementedMruVItemServiceServer) DeleteContainer ¶
func (*UnimplementedMruVItemServiceServer) DeleteContainer(context.Context, *ContainerID) (*ContainerID, error)
func (*UnimplementedMruVItemServiceServer) DeleteContainerType ¶
func (*UnimplementedMruVItemServiceServer) DeleteContainerType(context.Context, *ContainerTypeID) (*ContainerTypeID, error)
func (*UnimplementedMruVItemServiceServer) DeleteItem ¶
func (*UnimplementedMruVItemServiceServer) DeleteItemType ¶
func (*UnimplementedMruVItemServiceServer) DeleteItemType(context.Context, *ItemTypeID) (*ItemTypeID, error)
func (*UnimplementedMruVItemServiceServer) GetContainer ¶
func (*UnimplementedMruVItemServiceServer) GetContainer(context.Context, *ContainerID) (*Container, error)
func (*UnimplementedMruVItemServiceServer) GetContainerItems ¶
func (*UnimplementedMruVItemServiceServer) GetContainerItems(context.Context, *GetContainerItemsRequest) (*GetContainerItemsResponse, error)
func (*UnimplementedMruVItemServiceServer) GetContainerType ¶
func (*UnimplementedMruVItemServiceServer) GetContainerType(context.Context, *ContainerTypeID) (*ContainerType, error)
func (*UnimplementedMruVItemServiceServer) GetContainerTypes ¶
func (*UnimplementedMruVItemServiceServer) GetContainerTypes(context.Context, *GetContainerTypesRequest) (*GetContainerTypesResponse, error)
func (*UnimplementedMruVItemServiceServer) GetContainers ¶
func (*UnimplementedMruVItemServiceServer) GetContainers(context.Context, *GetContainersRequest) (*GetContainersResponse, error)
func (*UnimplementedMruVItemServiceServer) GetItemType ¶
func (*UnimplementedMruVItemServiceServer) GetItemType(context.Context, *ItemTypeID) (*ItemType, error)
func (*UnimplementedMruVItemServiceServer) GetItemTypes ¶
func (*UnimplementedMruVItemServiceServer) GetItemTypes(context.Context, *GetItemTypesRequest) (*GetItemTypesResponse, error)
func (*UnimplementedMruVItemServiceServer) GetItems ¶
func (*UnimplementedMruVItemServiceServer) GetItems(context.Context, *GetItemsRequest) (*GetItemsResponse, error)
func (*UnimplementedMruVItemServiceServer) GetNearestItems ¶
func (*UnimplementedMruVItemServiceServer) GetNearestItems(context.Context, *GetNearestItemsRequest) (*GetNearestItemsResponse, error)
func (*UnimplementedMruVItemServiceServer) GetServiceStatus ¶
func (*UnimplementedMruVItemServiceServer) GetServiceStatus(context.Context, *common.ServiceStatusRequest) (*common.ServiceStatusResponse, error)
func (*UnimplementedMruVItemServiceServer) GetServiceVersion ¶
func (*UnimplementedMruVItemServiceServer) GetServiceVersion(context.Context, *common.VersionRequest) (*common.VersionResponse, error)
func (*UnimplementedMruVItemServiceServer) PullItem ¶
func (*UnimplementedMruVItemServiceServer) PullItem(context.Context, *PullItemRequest) (*Item, error)
func (*UnimplementedMruVItemServiceServer) PutItem ¶
func (*UnimplementedMruVItemServiceServer) PutItem(context.Context, *PutItemRequest) (*PutItemResponse, error)
func (*UnimplementedMruVItemServiceServer) SortItems ¶
func (*UnimplementedMruVItemServiceServer) SortItems(context.Context, *SortItemsRequest) (*SortItemsResponse, error)
func (*UnimplementedMruVItemServiceServer) UseItem ¶
func (*UnimplementedMruVItemServiceServer) UseItem(context.Context, *UseItemRequest) (*UseItemResponse, error)
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 ¶
func (e UseItemRequestValidationError) Cause() error
Cause function returns cause value.
func (UseItemRequestValidationError) Error ¶
func (e UseItemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UseItemRequestValidationError) ErrorName ¶
func (e UseItemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UseItemRequestValidationError) Field ¶
func (e UseItemRequestValidationError) Field() string
Field function returns field value.
func (UseItemRequestValidationError) Key ¶
func (e UseItemRequestValidationError) Key() bool
Key function returns key value.
func (UseItemRequestValidationError) Reason ¶
func (e UseItemRequestValidationError) Reason() string
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 ¶
func (e UseItemResponseValidationError) Cause() error
Cause function returns cause value.
func (UseItemResponseValidationError) Error ¶
func (e UseItemResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UseItemResponseValidationError) ErrorName ¶
func (e UseItemResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UseItemResponseValidationError) Field ¶
func (e UseItemResponseValidationError) Field() string
Field function returns field value.
func (UseItemResponseValidationError) Key ¶
func (e UseItemResponseValidationError) Key() bool
Key function returns key value.
func (UseItemResponseValidationError) Reason ¶
func (e UseItemResponseValidationError) Reason() string
Reason function returns reason value.