cmp

package
v0.0.0-...-b1bd2f5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Domain string
	Path   string

	Body string
	// NormalizedBody is body without parts that identify a single
	// server (ex. domain) and fields known to be different between
	// instances (ex. `result_meta_xdr`).
	NormalizedBody string
}

func NewResponse

func NewResponse(domain, path string) *Response

func (*Response) Equal

func (r *Response) Equal(other *Response) bool

func (*Response) GetPaths

func (r *Response) GetPaths() []string

GetPaths finds all URLs in the response body and returns paths (without domain).

func (*Response) SaveDiff

func (r *Response) SaveDiff(outputDir string, other *Response)

Jump to

Keyboard shortcuts

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