websocket

package
v0.0.0-...-c3423aa Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocket

type WebSocket struct {
	base.DefaultProbe `yaml:",inline"`
	URL               string            `yaml:"url" json:"url" jsonschema:"format=uri,title=WebSocket URL,description=WebSocket URL to probe"`
	Proxy             string            `yaml:"proxy" json:"proxy,omitempty" jsonschema:"format=url,title=Proxy Server,description=proxy to use for the HTTP request"`
	Headers           map[string]string `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

WebSocket implements a Config for a websocket prober.

func (*WebSocket) Config

func (h *WebSocket) Config(gConf global.ProbeSettings) error

Config Websocket config Object

func (*WebSocket) DoProbe

func (h *WebSocket) DoProbe() (bool, string)

DoProbe return the checking result

Jump to

Keyboard shortcuts

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