db

package
v0.0.0-...-bbe6363 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCaptureCollection = `requests`
	DefaultDatabase          = `records.db`
)

Variables

This section is empty.

Functions

func Each

func Each(visitor func(rec *Record) error) error

func Exec

func Exec(query string, args ...interface{}) (sql.Result, error)

func InitDB

func InitDB(path string) error

func InitRODB

func InitRODB(path string) error

func Path

func Path() string

Types

type Record

type Record struct {
	ID        int
	UUID      string
	Method    string
	Status    int
	URL       string
	Path      string
	Headers   string
	Body      []byte
	DateStart *time.Time
	DateEnd   *time.Time
	TimeTaken int
}

Jump to

Keyboard shortcuts

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