dashboard
package v2.23.0
Go to latest Published: Jun 3, 2025 License:AGPL-3.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:18 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
Types¶
typeConfig¶
type Config struct {// Interval is the minimum interval between fetches.Intervaltime.Duration `json:"interval"`// Jitter is the maximum interval between fetches.Jittertime.Duration `json:"jitter"`// Trace is whether to trace the requests.Tracebool `json:"trace"`// Logger is the logger to use.Loggerslog.Logger `json:"-"`// Headless controls headless mode for chromedp.Headlessbool `json:"headless"`// ActionFunc is a function that returns an action to run.ActionFunc func(ctxcontext.Context, logslog.Logger, randIntn func(int)int, deadlinetime.Time) (Label,Action,error) `json:"-"`// WaitLoaded is a function that waits for the page to be loaded.WaitLoaded func(ctxcontext.Context, deadlinetime.Time)error// Screenshot is a function that takes a screenshot.Screenshot func(ctxcontext.Context, filenamestring) (string,error)// RandIntn is a function that returns a random number between 0 and n-1.RandIntn func(int)int `json:"-"`// InitChromeDPCtx is a function that initializes ChromeDP into the given context.Context.InitChromeDPCtx func(ctxcontext.Context, logslog.Logger, u *url.URL, sessionTokenstring, headlessbool) (context.Context,context.CancelFunc,error) `json:"-"`}
typePromMetrics¶
type PromMetrics struct {// contains filtered or unexported fields}
funcNewMetrics¶
func NewMetrics(regprometheus.Registerer) *PromMetrics
func (*PromMetrics)IncErrors¶
func (p *PromMetrics) IncErrors(actionstring)
func (*PromMetrics)ObserveDuration¶
func (p *PromMetrics) ObserveDuration(actionstring, dtime.Duration)
typeTarget¶added inv2.2.1
type Target struct {// Label is a human-readable label for the target.LabelLabel// ClickOn is the selector that locates the element to be clicked.ClickOnSelector// WaitFor is a selector that is expected to appear after the target is clicked.WaitForSelector}
Target is a thing that can be clicked.
Click to show internal directories.
Click to hide internal directories.