splash

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(splashPage string, enabled bool) func(http.Handler) http.Handler

Types

type ErrCreatingRequest

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

ErrCreatingRequest is returned when http.NewRequest() fails

func (ErrCreatingRequest) Error

func (e ErrCreatingRequest) Error() string

type ErrReadingBody

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

ErrReadingBody is returned when reading the renderer response body fails

func (ErrReadingBody) Error

func (e ErrReadingBody) Error() string

type ErrRenderingPage

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

ErrRenderingPage is returned when calling the renderer fails

func (ErrRenderingPage) Error

func (e ErrRenderingPage) Error() string

type ErrUnexpectedStatus

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

ErrUnexpectedStatus is returned when the renderer returns an unexpected status code

func (ErrUnexpectedStatus) Error

func (e ErrUnexpectedStatus) Error() string

Jump to

Keyboard shortcuts

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