api

package
v0.0.0-...-49a42b0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Body    interface{} `json:"body"`    // Can be more specific if needed
	Headers interface{} `json:"headers"` // Can be more specific if needed
	Method  string      `json:"method"`
	URL     string      `json:"url"`
}

type Response

type Response struct {
	Note     string       `json:"note"`
	Response ResponseData `json:"response"`
	Status   string       `json:"status"`
}

type ResponseData

type ResponseData struct {
	Error  string `json:"error"`
	Status string `json:"status"`
}

type RunDetails

type RunDetails struct {
	Progress            string     `json:"progress"`
	Status              string     `json:"status"`
	TemplateID          string     `json:"template_id"`
	TemplateInputField  string     `json:"template_input_field"`
	TemplateOutputField string     `json:"template_output_field"`
	TestCases           []TestCase `json:"testCases"`
}

Structs to represent the JSON response

type RunInfo

type RunInfo struct {
	EndTime    string `json:"end_time"`
	Progress   string `json:"progress"`
	RunID      string `json:"run_id"`
	StartTime  string `json:"start_time"`
	Status     string `json:"status"`
	TemplateID string `json:"template_id"`
	URL        string `json:"url"` // Add the URL field
}

RunInfo holds information about a Litmus run.

type TestCase

type TestCase struct {
	GoldenResponse string   `json:"golden_response"`
	ID             string   `json:"id"`
	Request        Request  `json:"request"`
	Response       Response `json:"response"`
	TracingID      string   `json:"tracing_id"`
}

Jump to

Keyboard shortcuts

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