controllers

package
v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthcheck

type Healthcheck struct {
	// contains filtered or unexported fields
}

Healthcheck controller

func (*Healthcheck) Inject

func (h *Healthcheck) Inject(provider statusProvider)

Inject Healthcheck dependencies

func (*Healthcheck) ServeHTTP

func (h *Healthcheck) ServeHTTP(w http.ResponseWriter, _ *http.Request)

ServeHTTP responds to healthcheck requests

type Ping

type Ping struct{}

Ping controller

func (*Ping) ServeHTTP

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

ServeHTTP responds to Ping requests

func (*Ping) TryServeHTTP

func (p *Ping) TryServeHTTP(rw http.ResponseWriter, req *http.Request) (bool, error)

TryServeHTTP implementation to be used in prefixrouter & co

Jump to

Keyboard shortcuts

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