roundtrip

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: GPL-3.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 RoundTrip

type RoundTrip struct {
	ID          string
	StartTime   time.Time
	EndTime     time.Time
	RawRequest  []byte
	RawResponse []byte

	Request      *http.Request
	RequestBody  []byte
	Response     *http.Response
	ResponseBody []byte
}

func New

func New(id string, startTime, endTime time.Time, rawRequest, rawResponse []byte) (*RoundTrip, error)

func (*RoundTrip) MarshalJSON

func (rt *RoundTrip) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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