basic

package
v0.0.0-...-8f77053 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(reqType RequestType, fn interface{}) *Handler

func (*Handler) Error

func (h *Handler) Error() rf.ErrorHandlerFunc

func (*Handler) Handle

func (h *Handler) Handle() rf.HandlerFunc

type RequestType

type RequestType int
const (
	GetParams RequestType = iota
	PostForm
)

type Response

type Response struct {
	Body       string
	StatusCode int
	Headers    map[string]string
}

Jump to

Keyboard shortcuts

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