cmp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 7 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
	Stream bool

	StatusCode int
	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, stream bool) *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)

func (*Response) Size

func (r *Response) Size() int

Jump to

Keyboard shortcuts

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