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 HeaderInterface ¶ added in v0.8.4
type HeaderInterface interface {
GetId() string
GetUser() string
GetBranch() string
GetBank() string
GetPerson() string
GetProgram() string
GetModule() string
GetMethod() string
SetUser(string)
SetBranch(string)
SetBank(string)
SetPerson(string)
SetProgram(string)
SetModule(string)
SetMethod(string)
}
type RecordData ¶ added in v0.7.1
type RequestHandler ¶
type RequestParser ¶
type RequestParser interface {
GetMethod() string
GetPath() string
GetHeader(target HeaderInterface) 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.