Documentation
¶
Index ¶
- func Get(url string) (*http.Response, error)
- func GetFunctionName(i interface{}) string
- func InitHelper(token string)
- func Post(url string, body interface{}) ([]byte, error)
- func PostWithHeaders(url string, body []byte, headers map[string]string) ([]byte, error)
- func PostWithJsonBody(url string, body any)
- func ReloadSession() (string, int)
- func StoreSession(sessionId string, maxSN int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctionName ¶
func GetFunctionName(i interface{}) string
func InitHelper ¶
func InitHelper(token string)
func PostWithHeaders ¶ added in v1.4.0
func PostWithJsonBody ¶
PostWithJsonBody 发送Post请求到指定url,将body进行json序列化作为请求体
func ReloadSession ¶
func StoreSession ¶
StoreSession save session id as local file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.