hiboot: hidevops.io/hiboot/pkg/app/web/context Index | Files

package context

import "hidevops.io/hiboot/pkg/app/web/context"


Package Files


type Context Uses

type Context interface {

Context is the interface of web app context

type ExtendedContext Uses

type ExtendedContext interface {
    //RequestBody(data interface{}) error
    //RequestForm(data interface{}) error
    //RequestParams(request interface{}) error
    ResponseString(s string)
    ResponseBody(message string, data interface{})
    ResponseError(message string, code int)
    WrapHandler(h http.Handler)

ExtendedContext extended context

type Handler Uses

type Handler func(Context)

Handler is the handler func type (for Middleware)

func NewHandler Uses

func NewHandler(h iris.Handler) Handler

NewHandler will convert iris handler to our handler of func(*Context), in order to be compatible with the HTTP API.

Package context imports 3 packages (graph) and is imported by 20 packages. Updated 2019-09-18. Refresh now. Tools for package owners.