Documentation
¶
Index ¶
- Constants
- Variables
- func Api(f func())
- func CommonHandler(w http.ResponseWriter, req *http.Request, handle *reflect.Value, ps *Params)
- func Connect(path string) *apiInfo
- func Delete(path string) *apiInfo
- func Get(path string) *apiInfo
- func GetMethodInfo(method *reflect.Method, preUrl string, httpContext reflect.Type) (info *apiInfo)
- func HandlerPrefix(p string)
- func Head(path string) *apiInfo
- func Log(method, path, title string)
- func Options(path string) *apiInfo
- func Patch(path string) *apiInfo
- func Post(path string) *apiInfo
- func Put(path string) *apiInfo
- func Registered()
- func ResWriteReflect(w httpi.ICommonResponseWriter, traceId string, result []reflect.Value) error
- func Trace(path string) *apiInfo
- type ApiInfo
- type Param
- type Params
- type ParseToHttpResponse
- type Service
- type Writer
Constants ¶
View Source
const Template = `` /* 345-byte string literal not displayed */
Variables ¶
Functions ¶
func CommonHandler ¶ added in v1.5.25
func GetMethodInfo ¶
recover捕捉panic info
func HandlerPrefix ¶ added in v1.7.0
func HandlerPrefix(p string)
func Registered ¶
func Registered()
func ResWriteReflect ¶ added in v1.5.6
Types ¶
type ApiInfo ¶
type Params ¶ added in v1.5.25
type Params []Param
Params is a Param-slice, as returned by the router. The slice is ordered, the first URL parameter is also the first slice value. It is therefore safe to read values by the index.
type ParseToHttpResponse ¶
Click to show internal directories.
Click to hide internal directories.
