selfhandler

package
v0.0.0-...-600bdfb Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoHandler

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

GoHandler implements Handler interface

func NewGoHandler

func NewGoHandler(logger *log.Logger) *GoHandler

NewGoHandler return a new goHandler

func (*GoHandler) Handler

func (g *GoHandler) Handler(r *http.Request, ec chan error)

Handler handles

func (*GoHandler) SetupRoute

func (g *GoHandler) SetupRoute(mux *http.ServeMux, ec chan error)

SetupRoute setup route

type Handler

type Handler interface {
	Handler(r *http.Request, ec chan error)
}

Handler is a interface which contains handler

Jump to

Keyboard shortcuts

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