httputil

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(handler Handler) http.HandlerFunc

func NoContent

func NoContent(w http.ResponseWriter) error

func RunServer

func RunServer(options ServerOptions) error

func String

func String(w http.ResponseWriter, status int, data string) error

Types

type Handler

type Handler func(w http.ResponseWriter, r *http.Request) error

type ServerOptions

type ServerOptions struct {
	Name            string
	Address         string
	Handler         http.Handler
	ShutdownTimeout time.Duration
	Logger          logr.Logger
	Stop            <-chan struct{}
}

Jump to

Keyboard shortcuts

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