approval

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package approval holds the parts of the approval requests (flow P7) that are not SQL: what the operator is shown, how long a request lives, and the loop that closes requests whose time is over. The queries and the decisions themselves are in internal/store (Reserve opens a request, DecideApproval decides it) and the HTTP routes in internal/ops.

What the operator sees (control M7) is typed values and the names of the rules, never the text of a note. The caller builds the arguments from the stored typed body of the document; a value that failed its format is there as a note reference ($note_N), which says nothing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, st *store.Store, log *slog.Logger)

Run closes expired requests until ctx ends.

func TTL

func TTL(scale float64) time.Duration

TTL is the life of a request: 30 minutes divided by the time scale (EDIGATE_TIME_SCALE), but not less than 30 seconds.

func View

func View(tool string, tier int, rules []string, args any) ([]byte, error)

View is the JSON the operator reads: the tool, its tier, the names of the rules that made it a request, and the typed arguments of the effect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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