Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2026 Changes in this version + var File_github_com_Compogo_resource_resource_resource_proto protoreflect.FileDescriptor + var File_github_com_Compogo_resource_resource_state_proto protoreflect.FileDescriptor + var File_github_com_Compogo_resource_resource_type_proto protoreflect.FileDescriptor + var State_name = map[int32]string + var State_value = map[string]int32 + var Type_name = map[int32]string + var Type_value = map[string]int32 + type Resource struct + Limit uint64 + Type Type + Usage uint64 + func (*Resource) Descriptor() ([]byte, []int) + func (*Resource) ProtoMessage() + func (x *Resource) GetLimit() uint64 + func (x *Resource) GetType() Type + func (x *Resource) GetUsage() uint64 + func (x *Resource) ProtoReflect() protoreflect.Message + func (x *Resource) Reset() + func (x *Resource) String() string + type State int32 + const State_Alarm + const State_Normal + const State_Warning + func (State) Descriptor() protoreflect.EnumDescriptor + func (State) EnumDescriptor() ([]byte, []int) + func (State) Type() protoreflect.EnumType + func (x State) Enum() *State + func (x State) Number() protoreflect.EnumNumber + func (x State) String() string + type Type int32 + const Type_CPU + const Type_Memory + func (Type) Descriptor() protoreflect.EnumDescriptor + func (Type) EnumDescriptor() ([]byte, []int) + func (Type) Type() protoreflect.EnumType + func (x Type) Enum() *Type + func (x Type) Number() protoreflect.EnumNumber + func (x Type) String() string