nw_replay

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNoReplayFound = errors.New("no replay response data found")
)

Functions

func NewHashReplay

func NewHashReplay(responses kv_storage.Storage) nw_client.Rest

hash -> Response mapping

func NewSequentialReplay

func NewSequentialReplay(r []Response) nw_client.Http

Types

type Response

type Response struct {
	Code    int               `json:"code"`
	Proto   string            `json:"proto"`
	Body    string            `json:"body"`
	Error   string            `json:"error"`
	Headers map[string]string `json:"headers"`
}

func (Response) Http

func (z Response) Http() *http.Response

Jump to

Keyboard shortcuts

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