Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_material_material_proto protoreflect.FileDescriptor + func NewMaterialServiceEndpoints() []*api.Endpoint + func RegisterMaterialServiceHandler(s server.Server, hdlr MaterialServiceHandler, opts ...server.HandlerOption) error + type CellReq struct + CellID uint32 + MaterialID int64 + func (*CellReq) Descriptor() ([]byte, []int) + func (*CellReq) ProtoMessage() + func (x *CellReq) GetCellID() uint32 + func (x *CellReq) GetMaterialID() int64 + func (x *CellReq) ProtoReflect() protoreflect.Message + func (x *CellReq) Reset() + func (x *CellReq) String() string + type LogLevelRequest struct + func (*LogLevelRequest) Descriptor() ([]byte, []int) + func (*LogLevelRequest) ProtoMessage() + func (x *LogLevelRequest) ProtoReflect() protoreflect.Message + func (x *LogLevelRequest) Reset() + func (x *LogLevelRequest) String() string + type LogResponse struct + Name string + func (*LogResponse) Descriptor() ([]byte, []int) + func (*LogResponse) ProtoMessage() + func (x *LogResponse) GetName() string + func (x *LogResponse) ProtoReflect() protoreflect.Message + func (x *LogResponse) Reset() + func (x *LogResponse) String() string + type Loglevel struct + Level uint32 + Name string + func (*Loglevel) Descriptor() ([]byte, []int) + func (*Loglevel) ProtoMessage() + func (x *Loglevel) GetLevel() uint32 + func (x *Loglevel) GetName() string + func (x *Loglevel) ProtoReflect() protoreflect.Message + func (x *Loglevel) Reset() + func (x *Loglevel) String() string + type Material struct + CellID uint32 + Id int64 + Properties string + Type *MaterialType + TypeID uint32 + TypeName string + func (*Material) Descriptor() ([]byte, []int) + func (*Material) ProtoMessage() + func (x *Material) GetCellID() uint32 + func (x *Material) GetId() int64 + func (x *Material) GetProperties() string + func (x *Material) GetType() *MaterialType + func (x *Material) GetTypeID() uint32 + func (x *Material) GetTypeName() string + func (x *Material) ProtoReflect() protoreflect.Message + func (x *Material) Reset() + func (x *Material) String() string + type MaterialFilter struct + And []*MaterialFilter + CellID *wrappers.UInt32Value + CellIDIn []uint32 + CellIDNotIn []uint32 + IdIn []int64 + Or []*MaterialFilter + Properties []*PropertyFilter + TypeID *wrappers.UInt32Value + TypeIDIn []uint32 + func (*MaterialFilter) Descriptor() ([]byte, []int) + func (*MaterialFilter) ProtoMessage() + func (x *MaterialFilter) GetAnd() []*MaterialFilter + func (x *MaterialFilter) GetCellID() *wrappers.UInt32Value + func (x *MaterialFilter) GetCellIDIn() []uint32 + func (x *MaterialFilter) GetCellIDNotIn() []uint32 + func (x *MaterialFilter) GetIdIn() []int64 + func (x *MaterialFilter) GetOr() []*MaterialFilter + func (x *MaterialFilter) GetProperties() []*PropertyFilter + func (x *MaterialFilter) GetTypeID() *wrappers.UInt32Value + func (x *MaterialFilter) GetTypeIDIn() []uint32 + func (x *MaterialFilter) ProtoReflect() protoreflect.Message + func (x *MaterialFilter) Reset() + func (x *MaterialFilter) String() string + type MaterialIDReq struct + Id int64 + func (*MaterialIDReq) Descriptor() ([]byte, []int) + func (*MaterialIDReq) ProtoMessage() + func (x *MaterialIDReq) GetId() int64 + func (x *MaterialIDReq) ProtoReflect() protoreflect.Message + func (x *MaterialIDReq) Reset() + func (x *MaterialIDReq) String() string + type MaterialIDsReq struct + Ids []int64 + func (*MaterialIDsReq) Descriptor() ([]byte, []int) + func (*MaterialIDsReq) ProtoMessage() + func (x *MaterialIDsReq) GetIds() []int64 + func (x *MaterialIDsReq) ProtoReflect() protoreflect.Message + func (x *MaterialIDsReq) Reset() + func (x *MaterialIDsReq) String() string + type MaterialQuery struct + Filter *MaterialFilter + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + func (*MaterialQuery) Descriptor() ([]byte, []int) + func (*MaterialQuery) ProtoMessage() + func (x *MaterialQuery) GetFilter() *MaterialFilter + func (x *MaterialQuery) GetLimit() uint32 + func (x *MaterialQuery) GetOffset() uint32 + func (x *MaterialQuery) GetPage() uint32 + func (x *MaterialQuery) GetPerPage() uint32 + func (x *MaterialQuery) ProtoReflect() protoreflect.Message + func (x *MaterialQuery) Reset() + func (x *MaterialQuery) String() string + type MaterialRecord struct + EndTime string + Material *Material + StartTime string + func (*MaterialRecord) Descriptor() ([]byte, []int) + func (*MaterialRecord) ProtoMessage() + func (x *MaterialRecord) GetEndTime() string + func (x *MaterialRecord) GetMaterial() *Material + func (x *MaterialRecord) GetStartTime() string + func (x *MaterialRecord) ProtoReflect() protoreflect.Message + func (x *MaterialRecord) Reset() + func (x *MaterialRecord) String() string + type MaterialRecords struct + Records []*MaterialRecord + TotalCount uint32 + func (*MaterialRecords) Descriptor() ([]byte, []int) + func (*MaterialRecords) ProtoMessage() + func (x *MaterialRecords) GetRecords() []*MaterialRecord + func (x *MaterialRecords) GetTotalCount() uint32 + func (x *MaterialRecords) ProtoReflect() protoreflect.Message + func (x *MaterialRecords) Reset() + func (x *MaterialRecords) String() string + type MaterialService interface + AddMaterial func(ctx context.Context, in *Material, opts ...client.CallOption) (*Response, error) + AddMaterialType func(ctx context.Context, in *MaterialType, opts ...client.CallOption) (*Response, error) + BatchAddMaterials func(ctx context.Context, in *Materials, opts ...client.CallOption) (*Response, error) + BatchDeleteMaterials func(ctx context.Context, in *MaterialIDsReq, opts ...client.CallOption) (*Response, error) + BindCell func(ctx context.Context, in *CellReq, opts ...client.CallOption) (*Response, error) + DeleteMaterial func(ctx context.Context, in *MaterialIDReq, opts ...client.CallOption) (*Response, error) + DeleteMaterialType func(ctx context.Context, in *MaterialTypeIDReq, opts ...client.CallOption) (*Response, error) + GetLogLevel func(ctx context.Context, in *LogLevelRequest, opts ...client.CallOption) (*Loglevel, error) + GetMaterial func(ctx context.Context, in *MaterialIDReq, opts ...client.CallOption) (*Material, error) + GetMaterialType func(ctx context.Context, in *MaterialTypeIDReq, opts ...client.CallOption) (*MaterialType, error) + GetMaterialTypes func(ctx context.Context, in *MaterialTypeQuery, opts ...client.CallOption) (*MaterialTypesResp, error) + GetMaterials func(ctx context.Context, in *MaterialQuery, opts ...client.CallOption) (*MaterialsResp, error) + GetRecord func(ctx context.Context, in *RecordQuery, opts ...client.CallOption) (*MaterialRecords, error) + SetLogLevel func(ctx context.Context, in *Loglevel, opts ...client.CallOption) (*LogResponse, error) + UnbindCell func(ctx context.Context, in *MaterialIDReq, opts ...client.CallOption) (*Response, error) + UpdateMaterial func(ctx context.Context, in *UpdateMaterialReq, opts ...client.CallOption) (*Response, error) + UpdateMaterialType func(ctx context.Context, in *UpdateMaterialTypeReq, opts ...client.CallOption) (*Response, error) + func NewMaterialService(name string, c client.Client) MaterialService + type MaterialServiceHandler interface + AddMaterial func(context.Context, *Material, *Response) error + AddMaterialType func(context.Context, *MaterialType, *Response) error + BatchAddMaterials func(context.Context, *Materials, *Response) error + BatchDeleteMaterials func(context.Context, *MaterialIDsReq, *Response) error + BindCell func(context.Context, *CellReq, *Response) error + DeleteMaterial func(context.Context, *MaterialIDReq, *Response) error + DeleteMaterialType func(context.Context, *MaterialTypeIDReq, *Response) error + GetLogLevel func(context.Context, *LogLevelRequest, *Loglevel) error + GetMaterial func(context.Context, *MaterialIDReq, *Material) error + GetMaterialType func(context.Context, *MaterialTypeIDReq, *MaterialType) error + GetMaterialTypes func(context.Context, *MaterialTypeQuery, *MaterialTypesResp) error + GetMaterials func(context.Context, *MaterialQuery, *MaterialsResp) error + GetRecord func(context.Context, *RecordQuery, *MaterialRecords) error + SetLogLevel func(context.Context, *Loglevel, *LogResponse) error + UnbindCell func(context.Context, *MaterialIDReq, *Response) error + UpdateMaterial func(context.Context, *UpdateMaterialReq, *Response) error + UpdateMaterialType func(context.Context, *UpdateMaterialTypeReq, *Response) error + type MaterialType struct + Description string + Id uint32 + Name string + Properties string + func (*MaterialType) Descriptor() ([]byte, []int) + func (*MaterialType) ProtoMessage() + func (x *MaterialType) GetDescription() string + func (x *MaterialType) GetId() uint32 + func (x *MaterialType) GetName() string + func (x *MaterialType) GetProperties() string + func (x *MaterialType) ProtoReflect() protoreflect.Message + func (x *MaterialType) Reset() + func (x *MaterialType) String() string + type MaterialTypeFilter struct + And []*MaterialTypeFilter + Id *wrappers.UInt32Value + IdIn []uint32 + Name *wrappers.StringValue + NameIn []string + Or []*MaterialTypeFilter + func (*MaterialTypeFilter) Descriptor() ([]byte, []int) + func (*MaterialTypeFilter) ProtoMessage() + func (x *MaterialTypeFilter) GetAnd() []*MaterialTypeFilter + func (x *MaterialTypeFilter) GetId() *wrappers.UInt32Value + func (x *MaterialTypeFilter) GetIdIn() []uint32 + func (x *MaterialTypeFilter) GetName() *wrappers.StringValue + func (x *MaterialTypeFilter) GetNameIn() []string + func (x *MaterialTypeFilter) GetOr() []*MaterialTypeFilter + func (x *MaterialTypeFilter) ProtoReflect() protoreflect.Message + func (x *MaterialTypeFilter) Reset() + func (x *MaterialTypeFilter) String() string + type MaterialTypeIDReq struct + Id uint32 + func (*MaterialTypeIDReq) Descriptor() ([]byte, []int) + func (*MaterialTypeIDReq) ProtoMessage() + func (x *MaterialTypeIDReq) GetId() uint32 + func (x *MaterialTypeIDReq) ProtoReflect() protoreflect.Message + func (x *MaterialTypeIDReq) Reset() + func (x *MaterialTypeIDReq) String() string + type MaterialTypeQuery struct + Filter *MaterialTypeFilter + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + func (*MaterialTypeQuery) Descriptor() ([]byte, []int) + func (*MaterialTypeQuery) ProtoMessage() + func (x *MaterialTypeQuery) GetFilter() *MaterialTypeFilter + func (x *MaterialTypeQuery) GetLimit() uint32 + func (x *MaterialTypeQuery) GetOffset() uint32 + func (x *MaterialTypeQuery) GetPage() uint32 + func (x *MaterialTypeQuery) GetPerPage() uint32 + func (x *MaterialTypeQuery) ProtoReflect() protoreflect.Message + func (x *MaterialTypeQuery) Reset() + func (x *MaterialTypeQuery) String() string + type MaterialTypesResp struct + MaterialTypes []*MaterialType + Totalpages uint32 + Totals uint32 + func (*MaterialTypesResp) Descriptor() ([]byte, []int) + func (*MaterialTypesResp) ProtoMessage() + func (x *MaterialTypesResp) GetMaterialTypes() []*MaterialType + func (x *MaterialTypesResp) GetTotalpages() uint32 + func (x *MaterialTypesResp) GetTotals() uint32 + func (x *MaterialTypesResp) ProtoReflect() protoreflect.Message + func (x *MaterialTypesResp) Reset() + func (x *MaterialTypesResp) String() string + type Materials struct + Materials []*Material + func (*Materials) Descriptor() ([]byte, []int) + func (*Materials) ProtoMessage() + func (x *Materials) GetMaterials() []*Material + func (x *Materials) ProtoReflect() protoreflect.Message + func (x *Materials) Reset() + func (x *Materials) String() string + type MaterialsResp struct + Materials []*Material + Totalpages uint32 + Totals uint32 + func (*MaterialsResp) Descriptor() ([]byte, []int) + func (*MaterialsResp) ProtoMessage() + func (x *MaterialsResp) GetMaterials() []*Material + func (x *MaterialsResp) GetTotalpages() uint32 + func (x *MaterialsResp) GetTotals() uint32 + func (x *MaterialsResp) ProtoReflect() protoreflect.Message + func (x *MaterialsResp) Reset() + func (x *MaterialsResp) String() string + type PropertyFilter struct + IsFuzzy bool + Key string + Type string + Value string + func (*PropertyFilter) Descriptor() ([]byte, []int) + func (*PropertyFilter) ProtoMessage() + func (x *PropertyFilter) GetIsFuzzy() bool + func (x *PropertyFilter) GetKey() string + func (x *PropertyFilter) GetType() string + func (x *PropertyFilter) GetValue() string + func (x *PropertyFilter) ProtoReflect() protoreflect.Message + func (x *PropertyFilter) Reset() + func (x *PropertyFilter) String() string + type RecordQuery struct + EndTime *wrappers.StringValue + Page uint32 + PerPage uint32 + StartTime *wrappers.StringValue + func (*RecordQuery) Descriptor() ([]byte, []int) + func (*RecordQuery) ProtoMessage() + func (x *RecordQuery) GetEndTime() *wrappers.StringValue + func (x *RecordQuery) GetPage() uint32 + func (x *RecordQuery) GetPerPage() uint32 + func (x *RecordQuery) GetStartTime() *wrappers.StringValue + func (x *RecordQuery) ProtoReflect() protoreflect.Message + func (x *RecordQuery) Reset() + func (x *RecordQuery) String() string + type Response struct + Id int64 + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) GetId() int64 + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type UpdateMaterial struct + Properties string + func (*UpdateMaterial) Descriptor() ([]byte, []int) + func (*UpdateMaterial) ProtoMessage() + func (x *UpdateMaterial) GetProperties() string + func (x *UpdateMaterial) ProtoReflect() protoreflect.Message + func (x *UpdateMaterial) Reset() + func (x *UpdateMaterial) String() string + type UpdateMaterialReq struct + Id int64 + Material *UpdateMaterial + func (*UpdateMaterialReq) Descriptor() ([]byte, []int) + func (*UpdateMaterialReq) ProtoMessage() + func (x *UpdateMaterialReq) GetId() int64 + func (x *UpdateMaterialReq) GetMaterial() *UpdateMaterial + func (x *UpdateMaterialReq) ProtoReflect() protoreflect.Message + func (x *UpdateMaterialReq) Reset() + func (x *UpdateMaterialReq) String() string + type UpdateMaterialType struct + Description *wrappers.StringValue + Name *wrappers.StringValue + Properties string + func (*UpdateMaterialType) Descriptor() ([]byte, []int) + func (*UpdateMaterialType) ProtoMessage() + func (x *UpdateMaterialType) GetDescription() *wrappers.StringValue + func (x *UpdateMaterialType) GetName() *wrappers.StringValue + func (x *UpdateMaterialType) GetProperties() string + func (x *UpdateMaterialType) ProtoReflect() protoreflect.Message + func (x *UpdateMaterialType) Reset() + func (x *UpdateMaterialType) String() string + type UpdateMaterialTypeReq struct + Id uint32 + MaterialType *UpdateMaterialType + func (*UpdateMaterialTypeReq) Descriptor() ([]byte, []int) + func (*UpdateMaterialTypeReq) ProtoMessage() + func (x *UpdateMaterialTypeReq) GetId() uint32 + func (x *UpdateMaterialTypeReq) GetMaterialType() *UpdateMaterialType + func (x *UpdateMaterialTypeReq) ProtoReflect() protoreflect.Message + func (x *UpdateMaterialTypeReq) Reset() + func (x *UpdateMaterialTypeReq) String() string