Documentation ¶
Index ¶
- type ExecuteElem
- type File
- type Payload
- func (pl Payload) EncodeAliPaySignParams() string
- func (pl Payload) EncodeURLParams() string
- func (pl Payload) EncodeWeChatSignParams(apiKey string) string
- func (pl Payload) Get(key string) string
- func (pl Payload) GetAny(key string) any
- func (pl Payload) GetString(key string) string
- func (pl Payload) JsonBody() (jb string)
- func (pl Payload) MarshalXML(e *xml.Encoder, start xml.StartElement) (err error)
- func (pl Payload) Remove(key string)
- func (pl Payload) Reset()
- func (pl Payload) Set(key string, value any, opts ...PayloadOptions) Payload
- func (pl Payload) SetFormFile(key string, file *File) Payload
- func (pl Payload) Unmarshal(ptr any) (err error)
- func (pl Payload) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)
- type PayloadOption
- type PayloadOptions
- type PayloadPreSetter
- type PayloadRuler
- type Ruler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteElem ¶
func ExecuteQueue ¶
func ExecuteQueue(queue ...ExecuteElem) ExecuteElem
ExecuteQueue combine MakeMapEndpoint func
type Payload ¶
func (Payload) EncodeAliPaySignParams ¶
EncodeAliPaySignParams ("bar=baz&foo=foo") sorted by key.
func (Payload) EncodeURLParams ¶
EncodeURLParams ("bar=baz&foo=foo") sorted by key.
func (Payload) EncodeWeChatSignParams ¶
EncodeWeChatSignParams ("bar=baz&foo=foo") sorted by key.
func (Payload) MarshalXML ¶
func (Payload) Set ¶
func (pl Payload) Set(key string, value any, opts ...PayloadOptions) Payload
Set 设置参数
func (Payload) SetFormFile ¶
SetFormFile 设置 FormFile
func (Payload) UnmarshalXML ¶
type PayloadOption ¶
type PayloadOption func(*PayloadOptions)
type PayloadOptions ¶
type PayloadOptions struct {
// contains filtered or unexported fields
}
func (PayloadOptions) SetOptional ¶
func (opt PayloadOptions) SetOptional(optional bool)
type PayloadPreSetter ¶
type PayloadPreSetter func(pl Payload)
func PreSetter ¶
func PreSetter(key, value string) PayloadPreSetter
type PayloadRuler ¶
func InjectRuler ¶
func InjectRuler(_map map[string][]Ruler) PayloadRuler
Click to show internal directories.
Click to hide internal directories.