helper

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string) (*http.Response, error)

func GetFunctionName

func GetFunctionName(i interface{}) string

func InitHelper

func InitHelper(token string)

func Post added in v1.3.0

func Post(url string, body interface{}) ([]byte, error)

func PostWithHeaders added in v1.4.0

func PostWithHeaders(url string, body []byte, headers map[string]string) ([]byte, error)

func PostWithJsonBody

func PostWithJsonBody(url string, body any)

PostWithJsonBody 发送Post请求到指定url,将body进行json序列化作为请求体

func ReloadSession

func ReloadSession() (string, int)

func StoreSession

func StoreSession(sessionId string, maxSN int)

StoreSession save session id as local file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL