Help us shape the future of Go! Take the 2026 Go Developer Survey

ping

package
v1.7.19 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 4 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:"Ping entryPoint" export:"true"`
	// contains filtered or unexported fields
}

Handler expose ping routes

func (*Handler) AddRoutes

func (h *Handler) AddRoutes(router *mux.Router)

AddRoutes add ping routes on a router

func (*Handler) WithContext added in v1.7.0

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