Documentation ¶
Index ¶
- func AddRequestBody(c *gin.Context, data string)
- func DefaultAPIKey() string
- func DefaultSecret() string
- func SetRequestContentType(c *gin.Context, contentType string)
- func SetRequestHeader(c *gin.Context, key, value string)
- func SetRequestMethod(c *gin.Context, method string)
- func SetRequestParams(c *gin.Context, value string)
- func StringToJSONArray(value string) []string
- type Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRequestBody ¶
AddRequestBody create a request body from a json string
func SetRequestContentType ¶
SetRequestContentType set the request content type
func SetRequestHeader ¶
SetRequestHeader set the request header
func SetRequestMethod ¶
SetRequestMethod set the request method
func SetRequestParams ¶
SetRequestParams set the request url
func StringToJSONArray ¶
StringToJSONArray convert a json string to a string array
Types ¶
Click to show internal directories.
Click to hide internal directories.