Documentation

Overview

    Package maintenance provides utilities for maintenance mode handling

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Config

    type Config interface {
    	MaintenanceMode() bool
    }

      Config is an interface that determines if the implementer can supply maintenance mode settings.

      type Responder

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

        Responder is a handle to a configured maintenance mode responder.

        func New

        func New(c Config) *Responder

          New creates a new maintenance mode responder.

          func (*Responder) Handle

          func (r *Responder) Handle(next http.Handler) http.Handler

            Handle will either return the maintenance mode responder (if enabled) or pass through to the next handler.

            Source Files