recording

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package recording defines the data structures used to record and replay invokations of "rsc" for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recording

type Recording struct {
	CmdArgs  []string        // command line arguments
	ExitCode int             // Exit code
	Stdout   string          // Exit print
	RR       RequestResponse // back-end request/response
}

Single "rsc" invokation recording

type RequestResponse

type RequestResponse struct {
	Verb, Uri  string      // request http verb and full uri with query string
	ReqHeader  http.Header // headers before std additions, such as user-agent
	ReqBody    string      // not []byte so that json.Marshal doesn't produce base64
	Status     int         // numerical response status
	RespHeader http.Header // full response headers
	RespBody   string      // not []byte so that json.Marshal doesn't produce base64
}

HTTP Request and response details

Jump to

Keyboard shortcuts

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