read

command
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Command read is an example of reading the audit trail from Go: a search, paged to the end with its cursor, and one record read with where it came from. It is the code docs/how-to/read-the-trail.md walks through, compiled on every run of the gate so that the guide cannot drift from the API.

The query service authenticates a bearer token from an issuer it trusts; what the caller may see comes from its grants file:

AUDIT_QUERY=https://audit-query.example.com \
AUDIT_BEARER=$(your-sign-in-tool token) \
go run ./examples/read

Jump to

Keyboard shortcuts

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