handlers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionFuncMap = make(map[string]func(*http.Request) ([]byte, error), 0)
)

Functions

func RegisterHandler

func RegisterHandler(h interface{})

Types

type DELETE

type DELETE struct{}

type GET

type GET struct{}

request method set

func (GET) ListAll

func (GET) ListAll(r *http.Request) (response []byte, err error)

func (GET) ReportThisweek

func (GET) ReportThisweek(r *http.Request) (response []byte, err error)
type HEAD struct{}

type OPTIONS

type OPTIONS struct{}

func (OPTIONS) ReportThisweek

func (OPTIONS) ReportThisweek(r *http.Request) (response []byte, err error)

type PATCH

type PATCH struct{}

type POST

type POST struct{}

func (POST) ReportThisweek

func (POST) ReportThisweek(r *http.Request) (response []byte, err error)

type PUT

type PUT struct{}

type ROUTER

type ROUTER struct{}

func (ROUTER) CrossHeader

func (ROUTER) CrossHeader(w http.ResponseWriter)

func (ROUTER) ServeHTTP

func (ROUTER) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Response

type Response struct {
	Result interface{} `json:"result"`
}

type TRACE

type TRACE struct{}

Jump to

Keyboard shortcuts

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