Documentation ¶
Index ¶
- func CatchRunPanic()
- func NewHandle() http.Handler
- func SetAllowedHeaders(s []string)
- func SetAllowedMethods(s []string)
- func SetAllowedOrigin(s string)
- func SetErrHandleFunc(fun ErrHandleFunc)
- func SetIntercept(i Interceptor)
- func SetPostProcess(p PostProcessor)
- type ErrHandleFunc
- type Files
- type Interceptor
- type PostProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchRunPanic ¶
func CatchRunPanic()
CatchRunPanic Capture exceptions generated during framework startup process
func SetAllowedHeaders ¶
func SetAllowedHeaders(s []string)
func SetAllowedMethods ¶
func SetAllowedMethods(s []string)
func SetAllowedOrigin ¶
func SetAllowedOrigin(s string)
func SetErrHandleFunc ¶
func SetErrHandleFunc(fun ErrHandleFunc)
SetErrHandleFunc Set global exception handling functions
func SetIntercept ¶
func SetIntercept(i Interceptor)
func SetPostProcess ¶
func SetPostProcess(p PostProcessor)
Types ¶
type Files ¶
type Files map[string][]*multipart.FileHeader
type Interceptor ¶
type Interceptor func(http.ResponseWriter, *http.Request) bool
Interceptor Abstract Method Returning true indicates a release request, while false indicates the opposite.
type PostProcessor ¶
PostProcessor Abstract Method The routing function is called when the return value is finished processing data.
Click to show internal directories.
Click to hide internal directories.