checkwebsocket

package
v0.0.0-...-12134b3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package checkwebsocket provides WebSocket connectivity checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketChecker

type WebSocketChecker struct{}

WebSocketChecker implements the Checker interface for WebSocket checks.

func (*WebSocketChecker) Execute

func (c *WebSocketChecker) Execute(
	ctx context.Context, config checkerdef.Config,
) (*checkerdef.Result, error)

Execute performs the WebSocket check and returns the result.

func (*WebSocketChecker) GetSampleConfigs

GetSampleConfigs returns sample WebSocket check configurations.

func (*WebSocketChecker) Type

Type returns the check type identifier.

func (*WebSocketChecker) Validate

func (c *WebSocketChecker) Validate(spec *checkerdef.CheckSpec) error

Validate checks if the configuration is valid. Every rule lives in the light `config` sub-package so an offline validator (`sp checks validate`) can run it without linking this checker's execution client.

type WebSocketConfig

type WebSocketConfig = checkconfig.WebSocketConfig

WebSocketConfig is this check's configuration. It lives in the light `config` sub-package; this alias keeps every existing `checkwebsocket.WebSocketConfig` call site compiling.

Directories

Path Synopsis
Package config holds the websocket check's configuration: the struct, its map parsing and serialization, its key constants and the whole offline rule set (ValidateSpec).
Package config holds the websocket check's configuration: the struct, its map parsing and serialization, its key constants and the whole offline rule set (ValidateSpec).

Jump to

Keyboard shortcuts

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