Documentation
¶
Index ¶
- Constants
- Variables
- func BuildHttpHeaders(headerInfo map[string]string) http.Header
- func BuildHttpRequest(requestMethod string, appURL string, endpoint string, headers http.Header, ...) (*http.Request, error)
- func LoadConfig(env string)
- func MakeHttpRequest(request *http.Request) (*http.Response, error)
- func MustReadBody(response *http.Response) []byte
- func ReadFile(requestFile string) []byte
- func RunTest(appURL, endpoint, requestMethod, requestBody string, headers http.Header, ...)
Constants ¶
View Source
const ( Get = "GET" GetPukEndpoint = "/login" )
Variables ¶
View Source
var Cfg *core.Config
View Source
var DefaultHeaders = map[string]string{ "App_id": "prismer@ai", "Request_id": "123", "Span_id": "123", "Trace_id": "123", "Parent_id": "123", "Client_ip": "123.123.123.123", "User-Agent": "postman", "Signature": core.GenAppSignature("prismer@ai", "prismer@ai", "", "123"), }
Functions ¶
func BuildHttpRequest ¶
func LoadConfig ¶
func LoadConfig(env string)
func MustReadBody ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.