Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProbe ¶
CreateProbe creates a probe using the global factory.
func RegisterProbe ¶
func RegisterProbe(probeType ProbeType, constructor ProbeConstructor) error
RegisterProbe registers a probe constructor with the global factory.
Types ¶
type ProbeConstructor ¶
ProbeConstructor is a function that creates a new probe instance.
type ProbeFactory ¶
type ProbeFactory interface {
// CreateProbe creates a new probe instance of the specified type.
CreateProbe(probeType ProbeType) (domain.Probe, error)
// RegisterProbeConstructor registers a constructor for a probe type.
RegisterProbeConstructor(probeType ProbeType, constructor ProbeConstructor) error
// GetSupportedProbes returns a list of all supported probe types.
GetSupportedProbes() []ProbeType
}
ProbeFactory defines the interface for creating probes.
func NewProbeFactory ¶
func NewProbeFactory() ProbeFactory
NewProbeFactory creates a new probe factory.
Click to show internal directories.
Click to hide internal directories.