maintenance

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerWrapper

type HandlerWrapper struct {
	common.HTTPHandler
	// contains filtered or unexported fields
}

HandlerWrapper wraps an existing HTTP handler and call to handler endpoint returns 503 (Service Unavailable). If authorized then the wrapped handler is invoked.

func NewMaintenanceWrapper

func NewMaintenanceWrapper(handler common.HTTPHandler) *HandlerWrapper

NewMaintenanceWrapper will return service unavailable for handler that was passed in.

func (*HandlerWrapper) Handler

Handler returns the 'wrapper' handler.

Jump to

Keyboard shortcuts

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