direct

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectWithConfig

func NewDirectWithConfig(conf *Config) (http.Handler, error)

Types

type Config

type Config struct {
	Code int
	Body input.Input
}

type Direct

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

func NewDirect

func NewDirect(code int, body template.Format) *Direct

func (*Direct) ServeHTTP

func (d *Direct) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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