Documentation ¶
Overview ¶
gadget provides a skeleton implementation for gadgets and is basically a thin wrapper around target.Target and adds some helper functionalities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gadget ¶
type Gadget struct { *target.Target OnKill func() OnExpiry func() // only called if gadget dies from expiry ThinkInterval int //should be > 0 OnThinkInterval func() Duration int //how long gadget should live for; use -1 for infinite // contains filtered or unexported fields }
func (*Gadget) Type ¶
func (g *Gadget) Type() targets.TargettableType
Click to show internal directories.
Click to hide internal directories.