kvika

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameLookupTime    = "NAMELOOKUP_TIME"
	ConnectTime       = "CONNECT_TIME"
	AppConnectTime    = "APPCONNECT_TIME"
	PreTransferTime   = "PRETRANSFER_TIME"
	StartTransferTime = "STARTTRANSFER_TIME"
	TotalTime         = "TOTAL_TIME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	At      float64
	Name    string
	Payload interface{}
}

type Events

type Events []Event

type Kvika

type Kvika struct {
}

func New

func New() *Kvika

func (*Kvika) Perform

func (k *Kvika) Perform(req *Request, callback func(r *Recorder, buf []byte)) (*Response, error)

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

func (*Recorder) Record

func (r *Recorder) Record(name string, payload interface{}) *Recorder

func (*Recorder) Start

func (r *Recorder) Start()

type Request

type Request struct {
	Method  string
	URL     *url.URL
	Headers http.Header
	Payload []byte
}

type Response

type Response struct {
	StatusCode int
	Events     Events
}

Jump to

Keyboard shortcuts

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