Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NumberRange ¶
type NumberRange struct {
// contains filtered or unexported fields
}
NumberRange can be used as source for successive id numbers to tag elements, since debuggers not always sow object addresses.
func (*NumberRange) NextId ¶
func (n *NumberRange) NextId() uint64
type ObjectIdentity ¶
type ObjectIdentity string
func NewObjectIdentity ¶
func NewObjectIdentity(kind string) ObjectIdentity
func (ObjectIdentity) String ¶
func (i ObjectIdentity) String() string
type RecorderProvider ¶
type RecorderProvider interface {
GetRecorder() *RuntimeFinalizationRecoder
}
type RuntimeFinalizationRecoder ¶
type RuntimeFinalizationRecoder struct {
// contains filtered or unexported fields
}
func GetRuntimeFinalizationRecorder ¶
func GetRuntimeFinalizationRecorder(o any) *RuntimeFinalizationRecoder
func (*RuntimeFinalizationRecoder) Get ¶
func (r *RuntimeFinalizationRecoder) Get() []ObjectIdentity
func (*RuntimeFinalizationRecoder) IsFinalized ¶
func (r *RuntimeFinalizationRecoder) IsFinalized(objs ...ObjectIdentity) bool
func (*RuntimeFinalizationRecoder) Record ¶
func (r *RuntimeFinalizationRecoder) Record(id ObjectIdentity)
type RuntimeFinalizer ¶
type RuntimeFinalizer struct {
// contains filtered or unexported fields
}
func NewRuntimeFinalizer ¶
func NewRuntimeFinalizer(id ObjectIdentity, r *RuntimeFinalizationRecoder, cleanup ...func() error) *RuntimeFinalizer
func (*RuntimeFinalizer) AddFinalizer ¶
func (f *RuntimeFinalizer) AddFinalizer(fi ...func() error)
Click to show internal directories.
Click to hide internal directories.