Back to godoc.org

Package controllers

v3.2.0
Latest Go to latest

The latest major version is v3.

Published: Feb 26, 2020 | License: MIT | Module: flamingo.me/flamingo/v3

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier