Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestHandler ¶
type RequestParser ¶
type RequestParser interface {
GetMethod() string
GetPath() string
GetHeader(target any) error
GetHeaderValue(name string) string
GetHttpHeader() http.Header
GetBody(target any) error
GetUri(target any) error
GetUrlQuery(target any) error
GetRawUrlQuery() string
GetLocal(name string) any
GetLocalString(name string) string
GetUrlParam(name string) string
GetUrlParams() map[string]string
CheckUrlParam(name string) (string, bool)
SetLocal(name string, value any)
GetArgs(args ...any) map[string]string
ParseCommand(command, title string, request libQuery.RecordData, parser libQuery.FieldParser) string
SendJSONRespBody(status int, resp response.WsResponse) error
Next() error
Abort() error
}
type WebFramework ¶
type WebFramework struct {
Ctx context.Context
//Handler response.ResponseHandler
Parser RequestParser
}
Click to show internal directories.
Click to hide internal directories.