difference

package
v0.0.0-...-0fffe9f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CtxKey = contextKey("disable-logs")

CtxKey is a key against which disableLogging will get stored in the context.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*bool, error)

FromContext retrieves the disable-logs value saved in the context.

func NewContext

func NewContext(ctx context.Context, consoleStr *bool) context.Context

NewContext returns a context with the passed value stored against the context key.

Types

type Difference

type Difference struct {
	URI     string   `json:"uri"`
	Headers string   `json:"headers"`
	Body    string   `json:"body"`
	Method  string   `json:"method"`
	Stage   string   `json:"stage"`
	Took    *float64 `json:"took,omitempty"`
}

Jump to

Keyboard shortcuts

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