Help us shape the future of Go! Take the 2026 Go Developer Survey

observe

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package observe shows runs observed in real systems in walkthroughs.

Apply matches an observation to a walkthrough's scenarios and writes each scenario instance found as its own scenario entry. The entry keeps every step's explanation and example and adds the exchange that was observed, with its tokens decoded but not verified, the step's status, and the exchanges that matched no step, each after the step it followed. Raw token, signature and credential values are masked unless asked for.

Index

Constants

View Source
const (
	MaskJWT   = "[redacted:jwt]"
	MaskValue = "[redacted]"
)

Masks put in place of redacted values.

Variables

This section is empty.

Functions

func Apply

Apply matches o to w's scenarios and adds an entry for each scenario instance found, right after the scenario it is an instance of. p supplies the token definitions; b may be nil.

Types

type Options

type Options struct {
	// Scenarios names the scenarios to look for, in order; empty means
	// every scenario that is not a fragment.
	Scenarios []string
	// From and To limit matching to exchanges in a time range.
	From, To *time.Time
	// Raw keeps raw token, signature and credential values; by default
	// they are masked and decoded claims are kept.
	Raw bool
}

Options controls matching and output.

Directories

Path Synopsis
adapter
sandbox
Package sandbox reads the message trace of the aauth-go sandbox as a PIDL observation.
Package sandbox reads the message trace of the aauth-go sandbox as a PIDL observation.
Package match matches observed exchanges to the steps of a walkthrough's scenarios.
Package match matches observed exchanges to the steps of a walkthrough's scenarios.

Jump to

Keyboard shortcuts

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