http

package module
v0.0.0-...-9ca6001 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 11 Imported by: 0

README

http

This is the http plugin for protomux

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(route *Route) (modules.Router, error)

Types

type Route

type Route struct {
	Location string
	Handlers []*modules.HandlerConfig
}

func (*Route) Handler

func (r *Route) Handler(ctx *fasthttp.RequestCtx)

func (*Route) UnmarshalJSON

func (r *Route) UnmarshalJSON(data []byte) error

type Serve

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

func NewServe

func NewServe(mux *mux.Mux) (*Serve, error)

func (*Serve) Handler

func (s *Serve) Handler(ctx *fasthttp.RequestCtx)

func (*Serve) ServeMux

func (s *Serve) ServeMux(ctx context.Context, conn net.Conn)

Directories

Path Synopsis
internal
log

Jump to

Keyboard shortcuts

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