Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_warehouse_warehouse_proto protoreflect.FileDescriptor + var StatusType_name = map[int32]string + var StatusType_value = map[string]int32 + func NewWarehouseEndpoints() []*api.Endpoint + func RegisterWarehouseHandler(s server.Server, hdlr WarehouseHandler, opts ...server.HandlerOption) error + type DeleteResp struct + func (*DeleteResp) Descriptor() ([]byte, []int) + func (*DeleteResp) ProtoMessage() + func (x *DeleteResp) ProtoReflect() protoreflect.Message + func (x *DeleteResp) Reset() + func (x *DeleteResp) String() string + type EarthCoordinate struct + Latitude uint32 + Longitude uint32 + func (*EarthCoordinate) Descriptor() ([]byte, []int) + func (*EarthCoordinate) ProtoMessage() + func (x *EarthCoordinate) GetLatitude() uint32 + func (x *EarthCoordinate) GetLongitude() uint32 + func (x *EarthCoordinate) ProtoReflect() protoreflect.Message + func (x *EarthCoordinate) Reset() + func (x *EarthCoordinate) String() string + type GeometricProperty struct + Ecord *EarthCoordinate + FloorNum uint32 + Height uint32 + Length uint32 + Width uint32 + func (*GeometricProperty) Descriptor() ([]byte, []int) + func (*GeometricProperty) ProtoMessage() + func (x *GeometricProperty) GetEcord() *EarthCoordinate + func (x *GeometricProperty) GetFloorNum() uint32 + func (x *GeometricProperty) GetHeight() uint32 + func (x *GeometricProperty) GetLength() uint32 + func (x *GeometricProperty) GetWidth() uint32 + func (x *GeometricProperty) ProtoReflect() protoreflect.Message + func (x *GeometricProperty) Reset() + func (x *GeometricProperty) String() string + type IdReq struct + Id uint32 + func (*IdReq) Descriptor() ([]byte, []int) + func (*IdReq) ProtoMessage() + func (x *IdReq) GetId() uint32 + func (x *IdReq) ProtoReflect() protoreflect.Message + func (x *IdReq) Reset() + func (x *IdReq) String() string + type LayoutReq struct + Data []byte + Name string + Size uint32 + func (*LayoutReq) Descriptor() ([]byte, []int) + func (*LayoutReq) ProtoMessage() + func (x *LayoutReq) GetData() []byte + func (x *LayoutReq) GetName() string + func (x *LayoutReq) GetSize() uint32 + func (x *LayoutReq) ProtoReflect() protoreflect.Message + func (x *LayoutReq) Reset() + func (x *LayoutReq) String() string + type LayoutResp struct + func (*LayoutResp) Descriptor() ([]byte, []int) + func (*LayoutResp) ProtoMessage() + func (x *LayoutResp) ProtoReflect() protoreflect.Message + func (x *LayoutResp) Reset() + func (x *LayoutResp) String() string + type OpReq struct + Op StatusType + func (*OpReq) Descriptor() ([]byte, []int) + func (*OpReq) ProtoMessage() + func (x *OpReq) GetOp() StatusType + func (x *OpReq) ProtoReflect() protoreflect.Message + func (x *OpReq) Reset() + func (x *OpReq) String() string + type OpResp struct + func (*OpResp) Descriptor() ([]byte, []int) + func (*OpResp) ProtoMessage() + func (x *OpResp) ProtoReflect() protoreflect.Message + func (x *OpResp) Reset() + func (x *OpResp) String() string + type Query struct + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + QueryString string + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (x *Query) GetLimit() uint32 + func (x *Query) GetOffset() uint32 + func (x *Query) GetPage() uint32 + func (x *Query) GetPerPage() uint32 + func (x *Query) GetQueryString() string + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type StatusType int32 + const StatusType_INITIAL + const StatusType_RUN + const StatusType_STOP + const StatusType_SUSPEND + func (StatusType) Descriptor() protoreflect.EnumDescriptor + func (StatusType) EnumDescriptor() ([]byte, []int) + func (StatusType) Type() protoreflect.EnumType + func (x StatusType) Enum() *StatusType + func (x StatusType) Number() protoreflect.EnumNumber + func (x StatusType) String() string + type WarehouseHandler interface + Create func(context.Context, *WarehouseReq, *WarehouseResp) error + DeleteByID func(context.Context, *IdReq, *DeleteResp) error + GetByID func(context.Context, *IdReq, *WarehouseResp) error + GetQuery func(context.Context, *Query, *WarehousesResp) error + SetOperation func(context.Context, *WarehouseReq, *WarehouseResp) error + Update func(context.Context, *WarehouseReq, *WarehouseResp) error + type WarehouseReq struct + Id uint32 + Ikey string + Location string + Name string + Property *GeometricProperty + Status StatusType + func (*WarehouseReq) Descriptor() ([]byte, []int) + func (*WarehouseReq) ProtoMessage() + func (x *WarehouseReq) GetId() uint32 + func (x *WarehouseReq) GetIkey() string + func (x *WarehouseReq) GetLocation() string + func (x *WarehouseReq) GetName() string + func (x *WarehouseReq) GetProperty() *GeometricProperty + func (x *WarehouseReq) GetStatus() StatusType + func (x *WarehouseReq) ProtoReflect() protoreflect.Message + func (x *WarehouseReq) Reset() + func (x *WarehouseReq) String() string + type WarehouseResp struct + Id uint32 + Ikey string + Location string + Name string + Property *GeometricProperty + Status StatusType + func (*WarehouseResp) Descriptor() ([]byte, []int) + func (*WarehouseResp) ProtoMessage() + func (x *WarehouseResp) GetId() uint32 + func (x *WarehouseResp) GetIkey() string + func (x *WarehouseResp) GetLocation() string + func (x *WarehouseResp) GetName() string + func (x *WarehouseResp) GetProperty() *GeometricProperty + func (x *WarehouseResp) GetStatus() StatusType + func (x *WarehouseResp) ProtoReflect() protoreflect.Message + func (x *WarehouseResp) Reset() + func (x *WarehouseResp) String() string + type WarehouseService interface + Create func(ctx context.Context, in *WarehouseReq, opts ...client.CallOption) (*WarehouseResp, error) + DeleteByID func(ctx context.Context, in *IdReq, opts ...client.CallOption) (*DeleteResp, error) + GetByID func(ctx context.Context, in *IdReq, opts ...client.CallOption) (*WarehouseResp, error) + GetQuery func(ctx context.Context, in *Query, opts ...client.CallOption) (*WarehousesResp, error) + SetOperation func(ctx context.Context, in *WarehouseReq, opts ...client.CallOption) (*WarehouseResp, error) + Update func(ctx context.Context, in *WarehouseReq, opts ...client.CallOption) (*WarehouseResp, error) + func NewWarehouseService(name string, c client.Client) WarehouseService + type WarehousesResp struct + Currpages uint32 + Totalpages uint32 + Warehouses []*WarehouseResp + func (*WarehousesResp) Descriptor() ([]byte, []int) + func (*WarehousesResp) ProtoMessage() + func (x *WarehousesResp) GetCurrpages() uint32 + func (x *WarehousesResp) GetTotalpages() uint32 + func (x *WarehousesResp) GetWarehouses() []*WarehouseResp + func (x *WarehousesResp) ProtoReflect() protoreflect.Message + func (x *WarehousesResp) Reset() + func (x *WarehousesResp) String() string