ping

package
v2.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 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 Handler

type Handler struct {
	EntryPoint    string `description:"EntryPoint" export:"true" json:"entryPoint,omitempty" toml:"entryPoint,omitempty" yaml:"entryPoint,omitempty"`
	ManualRouting bool   `description:"Manual routing" json:"manualRouting,omitempty" toml:"manualRouting,omitempty" yaml:"manualRouting,omitempty"`
	// contains filtered or unexported fields
}

Handler expose ping routes.

func (*Handler) ServeHTTP added in v2.1.0

func (h *Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)

func (*Handler) SetDefaults

func (h *Handler) SetDefaults()

SetDefaults sets the default values.

func (*Handler) WithContext

func (h *Handler) WithContext(ctx context.Context)

WithContext causes the ping endpoint to serve non 200 responses.

Jump to

Keyboard shortcuts

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