Documentation
¶
Index ¶
- Constants
- Variables
- type API
- type ApiHandler
- type ApiInfo
- type BodyParamMapper
- type Configure
- type Container
- type ExtendedParamMapper
- type Filter
- type FilterChain
- type FormParamMapper
- type HeaderParamMapper
- type HttpMapper
- type Param
- type ParamMapper
- type PathParamMapper
- type Patterns
- type QueryParamMapper
- type Service
- type UploadMapper
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" PATCH = "PATCH" DELETE = "DELETE" )
View Source
const ( Path = "path" Query = "query" Body = "body" Header = "header" Form = "form" Multipart = "multipart" Context = "context" Request = "request" Response = "response" App = "app" Stream = "stream" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ApiHandler ¶ added in v1.3.0
type BodyParamMapper ¶ added in v1.3.0
type Container ¶ added in v1.1.5
type Container interface { bean.Bean WebHandler() ApiHandler ListenAndServe(port int) }
type ExtendedParamMapper ¶ added in v1.3.0
type ExtendedParamMapper interface {
Get(param Param) interface{}
}
type Filter ¶ added in v1.1.5
type Filter interface { bean.Bean Order() int UrlPatterns() Patterns DoFilter(w http.ResponseWriter, r *http.Request, chain FilterChain) error }
type FilterChain ¶ added in v1.1.8
type FilterChain interface { GetFilter() Filter SetNext(chain FilterChain) GetNext() FilterChain DoFilter(w http.ResponseWriter, r *http.Request) error SetService(service Service) DoService(w http.ResponseWriter, r *http.Request) error }
type FormParamMapper ¶ added in v1.3.0
type HeaderParamMapper ¶ added in v1.3.0
type HttpMapper ¶ added in v1.3.0
type HttpMapper interface { GetRequest() *http.Request GetResponseWriter() http.ResponseWriter }
type ParamMapper ¶ added in v1.3.0
type ParamMapper interface { PathParamMapper QueryParamMapper BodyParamMapper HeaderParamMapper FormParamMapper UploadMapper HttpMapper ExtendedParamMapper }
type PathParamMapper ¶ added in v1.3.0
type QueryParamMapper ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.