history

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Code generated by go run github.com/nfx/slrp/ql/generator/main.go Foo. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

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

func NewHistory

func NewHistory() *History

func (*History) Configure

func (h *History) Configure(c app.Config) error

func (*History) HttpGet

func (h *History) HttpGet(r *http.Request) (interface{}, error)

func (*History) HttpGetByID

func (h *History) HttpGetByID(id string, r *http.Request) (interface{}, error)

func (*History) Record

func (h *History) Record(r Request)

func (*History) Start

func (h *History) Start(ctx app.Context)

func (*History) Wrap added in v0.0.4

func (h *History) Wrap(transport http.RoundTripper) http.RoundTripper

type Request

type Request struct {
	ID         int
	Serial     int
	Attempt    int `facet:"Attempt"`
	Ts         time.Time
	Method     string     `facet:"Method"`
	URL        string     `facet:"Host"`
	StatusCode int        `facet:"Status Code"`
	Status     string     `facet:"Status"`
	Proxy      pmux.Proxy `facet:"Proxy"`
	Appeared   int
	InHeaders  map[string]string
	OutHeaders map[string]string
	InBody     []byte
	OutBody    []byte
	Size       int
	Took       time.Duration
}

func (Request) String

func (r Request) String() string

type RequestDataset added in v0.2.0

type RequestDataset []Request

func (RequestDataset) Query added in v0.2.0

func (d RequestDataset) Query(query string) (*eval.QueryResult[Request], error)

Jump to

Keyboard shortcuts

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