Documentation ¶
Index ¶
- func SendRequest[T any](ctx context.Context, c *client.Client, url string, ...) (respBody T, err error)
- func SendRequestWithHeaderResp[T any](ctx context.Context, c *client.Client, url string, ...) (respBody T, respHeader []map[string]string, err error)
- func ServerAuthMiddleware(secret string) app.HandlerFunc
- type RequestExtraFunc
- func AddHeaderFunc(headers map[string]string) RequestExtraFunc
- func FormDataFunc(params []map[string]string, images []io.Reader) RequestExtraFunc
- func GetFunc(params map[string]string) RequestExtraFunc
- func PostFunc(body any) RequestExtraFunc
- func PostFuncWithAuth(body any, secret string) RequestExtraFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendRequest ¶
func SendRequestWithHeaderResp ¶ added in v1.0.5
func ServerAuthMiddleware ¶
func ServerAuthMiddleware(secret string) app.HandlerFunc
Types ¶
type RequestExtraFunc ¶
func AddHeaderFunc ¶
func AddHeaderFunc(headers map[string]string) RequestExtraFunc
func FormDataFunc ¶
func FormDataFunc(params []map[string]string, images []io.Reader) RequestExtraFunc
func GetFunc ¶
func GetFunc(params map[string]string) RequestExtraFunc
func PostFunc ¶
func PostFunc(body any) RequestExtraFunc
func PostFuncWithAuth ¶
func PostFuncWithAuth(body any, secret string) RequestExtraFunc
Click to show internal directories.
Click to hide internal directories.