Documentation ¶
Overview ¶
nolint:,staticcheck,ineffassign
Index ¶
- type FakeParser
- func (f FakeParser) Abort() error
- func (f FakeParser) CheckUrlParam(name string) (string, bool)
- func (c FakeParser) FileAttachment(path, fileName string)
- func (c FakeParser) FormValue(name string) string
- func (f FakeParser) GetArgs(args ...any) map[string]string
- func (f FakeParser) GetBody(target any) error
- func (f FakeParser) GetHeader(target HeaderInterface) error
- func (f FakeParser) GetHeaderValue(name string) string
- func (f FakeParser) GetHttpHeader() http.Header
- func (f FakeParser) GetLocal(name string) any
- func (f FakeParser) GetLocalString(name string) string
- func (f FakeParser) GetMethod() string
- func (f FakeParser) GetPath() string
- func (f FakeParser) GetRawUrlQuery() string
- func (f FakeParser) GetUri(target any) error
- func (f FakeParser) GetUrlParam(name string) string
- func (f FakeParser) GetUrlParams() map[string]string
- func (f FakeParser) GetUrlQuery(target any) error
- func (f FakeParser) Next() error
- func (f FakeParser) ParseCommand(command, title string, request RecordData, parser FieldParser) string
- func (c FakeParser) SaveFile(formTagName, path string) error
- func (f FakeParser) SendJSONRespBody(status int, resp any) error
- func (f FakeParser) SetLocal(name string, value any)
- func (f FakeParser) SetReqHeader(name string, value string)
- type FieldParser
- type HeaderInterface
- type RecordData
- type RequestHandler
- type RequestParser
- type WebFramework
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeParser ¶ added in v0.9.49
type FakeParser struct { Method string Path string Header HeaderInterface HttpHeader http.Header ReqHeader map[string]string Body any Uri any UrlQuery any RawUrlQuery string Locals map[string]any Args map[string]string Urlparams map[string]string JsonResp any }
func (FakeParser) Abort ¶ added in v0.9.49
func (f FakeParser) Abort() error
func (FakeParser) CheckUrlParam ¶ added in v0.9.49
func (f FakeParser) CheckUrlParam(name string) (string, bool)
func (FakeParser) FileAttachment ¶ added in v0.10.4
func (c FakeParser) FileAttachment(path, fileName string)
func (FakeParser) FormValue ¶ added in v0.10.1
func (c FakeParser) FormValue(name string) string
func (FakeParser) GetArgs ¶ added in v0.9.49
func (f FakeParser) GetArgs(args ...any) map[string]string
func (FakeParser) GetBody ¶ added in v0.9.49
func (f FakeParser) GetBody(target any) error
func (FakeParser) GetHeader ¶ added in v0.9.49
func (f FakeParser) GetHeader(target HeaderInterface) error
func (FakeParser) GetHeaderValue ¶ added in v0.9.49
func (f FakeParser) GetHeaderValue(name string) string
func (FakeParser) GetHttpHeader ¶ added in v0.9.49
func (f FakeParser) GetHttpHeader() http.Header
func (FakeParser) GetLocal ¶ added in v0.9.49
func (f FakeParser) GetLocal(name string) any
func (FakeParser) GetLocalString ¶ added in v0.9.49
func (f FakeParser) GetLocalString(name string) string
func (FakeParser) GetMethod ¶ added in v0.9.49
func (f FakeParser) GetMethod() string
func (FakeParser) GetPath ¶ added in v0.9.49
func (f FakeParser) GetPath() string
func (FakeParser) GetRawUrlQuery ¶ added in v0.9.49
func (f FakeParser) GetRawUrlQuery() string
func (FakeParser) GetUri ¶ added in v0.9.49
func (f FakeParser) GetUri(target any) error
func (FakeParser) GetUrlParam ¶ added in v0.9.49
func (f FakeParser) GetUrlParam(name string) string
func (FakeParser) GetUrlParams ¶ added in v0.9.49
func (f FakeParser) GetUrlParams() map[string]string
func (FakeParser) GetUrlQuery ¶ added in v0.9.49
func (f FakeParser) GetUrlQuery(target any) error
func (FakeParser) Next ¶ added in v0.9.49
func (f FakeParser) Next() error
func (FakeParser) ParseCommand ¶ added in v0.9.49
func (f FakeParser) ParseCommand(command, title string, request RecordData, parser FieldParser) string
func (FakeParser) SaveFile ¶ added in v0.10.1
func (c FakeParser) SaveFile( formTagName, path string, ) error
func (FakeParser) SendJSONRespBody ¶ added in v0.9.49
func (f FakeParser) SendJSONRespBody(status int, resp any) error
func (FakeParser) SetLocal ¶ added in v0.9.49
func (f FakeParser) SetLocal(name string, value any)
func (FakeParser) SetReqHeader ¶ added in v0.9.49
func (f FakeParser) SetReqHeader(name string, value string)
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 FormValue(name string) string SaveFile(formTagName, path string) error FileAttachment(path, fileName string) }
type WebFramework ¶
type WebFramework struct { Ctx context.Context //Handler response.ResponseHandler Parser RequestParser }
Click to show internal directories.
Click to hide internal directories.