detector

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SimpleDetectorName = "Simple"

Variables

This section is empty.

Functions

This section is empty.

Types

type Simple

type Simple struct {
	// contains filtered or unexported fields
}

func NewSimple

func NewSimple(options *SimpleOptions, observability *common.Observability) *Simple

func (*Simple) Detect

func (a *Simple) Detect() error

func (*Simple) FilterTriggers

func (a *Simple) FilterTriggers(n common.Notifier, vr *common.VerifyEndpoints) *common.VerifyEndpoints

func (*Simple) Name

func (a *Simple) Name() string

func (*Simple) Schedule

func (a *Simple) Schedule() string

func (*Simple) Start

func (a *Simple) Start(ctx context.Context)

func (*Simple) TriggerKey

func (a *Simple) TriggerKey(n common.Notifier, ep *common.VerifyEndpoint) string

func (*Simple) UpdateTriggers

func (a *Simple) UpdateTriggers(n common.Notifier, es *common.VerifyEndpoints)

type SimpleOptions

type SimpleOptions struct {
	Name                   string
	Schedule               string
	Countries              []string
	Triggers               *common.Triggers
	Sources                []common.Source
	ObserverConfigurations []*common.ObserverConfiguration
	VerifierConfigurations []*common.VerifierConfiguration
	NotifierConfigurations []*common.NotifierConfiguration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL