Documentation
¶
Overview ¶
Package checkwebsocket provides WebSocket connectivity checks.
Index ¶
- type WebSocketChecker
- func (c *WebSocketChecker) Execute(ctx context.Context, config checkerdef.Config) (*checkerdef.Result, error)
- func (c *WebSocketChecker) GetSampleConfigs(_ *checkerdef.ListSampleOptions) []checkerdef.CheckSpec
- func (c *WebSocketChecker) Type() checkerdef.CheckType
- func (c *WebSocketChecker) Validate(spec *checkerdef.CheckSpec) error
- type WebSocketConfig
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 ¶
func (c *WebSocketChecker) GetSampleConfigs(_ *checkerdef.ListSampleOptions) []checkerdef.CheckSpec
GetSampleConfigs returns sample WebSocket check configurations.
func (*WebSocketChecker) Type ¶
func (c *WebSocketChecker) Type() checkerdef.CheckType
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). |