httpping

package
v0.0.0-...-06db429 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PingProtocolID = "/http-ping/1"

Variables

This section is empty.

Functions

func SendPing

func SendPing(client http.Client) error

SendPing send an ping request over HTTP. The provided client should be namespaced to the Ping protocol.

Types

type Ping

type Ping struct{}

func (Ping) ServeHTTP

func (Ping) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

Jump to

Keyboard shortcuts

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