Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldParser ¶ added in v0.7.1
type RecordData ¶ added in v0.7.1
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) SetReqHeader(name string, value string) GetArgs(args ...any) map[string]string ParseCommand(command, title string, request RecordData, parser FieldParser) string SendJSONRespBody(status int, resp any) 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.