Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assignment ¶
type Assignment struct { Assignment struct { Type string AssignmentDataHTTPTests *struct { HttpTests struct { BaseURL *string ContainsCompleteDir bool Requests []struct { ResponseVariables []ResponseVariable Tests []HTTPTest Request struct { BasicAuth *struct { Username string Password string } Headers map[string]string BodyJSON map[string]interface{} Method string Path string Actions struct { DelayRequestByMs *int32 } } } } } } }
func FetchAssignment ¶
func FetchAssignment(uuid string) (*Assignment, error)
type HTTPTest ¶
type HTTPTest struct { StatusCode *int BodyContains *string HeadersContain *HTTPTestHeader JSONValue *HTTPTestJSONValue }
Only one of these fields should be set
type HTTPTestHeader ¶
type HTTPTestJSONValue ¶
type HTTPTestJSONValue struct { Path string Operator OperatorType IntValue *int StringValue *string BoolValue *bool }
type HTTPTestValidationError ¶
type LoginRequest ¶
type LoginRequest struct {
Otp string `json:"otp"`
}
type LoginResponse ¶
type LoginResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` }
func FetchAccessToken ¶
func FetchAccessToken() (*LoginResponse, error)
func LoginWithCode ¶
func LoginWithCode(code string) (*LoginResponse, error)
type OperatorType ¶
type OperatorType string
const ( OpEquals OperatorType = "eq" OpGreaterThan OperatorType = "gt" )
type ResponseVariable ¶
Click to show internal directories.
Click to hide internal directories.