httpkit

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Actor

func Actor(withOptions ...ServeOptions) (execute func() error, interrupt func(error))

func ListenAndServe

func ListenAndServe(withOptions ...ServeOptions) error

Types

type ServeMuxOptions

type ServeMuxOptions func(*http.ServeMux)

func WithServeMuxPatternHandler

func WithServeMuxPatternHandler(pattern string, handler http.Handler) ServeMuxOptions

type ServeOptions

type ServeOptions func(options *serverOptions)

func WithDefaultServeMuxHandler

func WithDefaultServeMuxHandler(serveMuxOptions ...ServeMuxOptions) ServeOptions

func WithServeHandler

func WithServeHandler(handler http.Handler) ServeOptions

func WithServePort

func WithServePort(port int) ServeOptions

Jump to

Keyboard shortcuts

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