audit

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pre

func Pre(path string, e PreEntry) error

Pre appends the pre-call write audit entry.

func Write

func Write(path string, cmd, requestID string, args map[string]any, result string, extra map[string]any) error

Write appends one JSONL audit entry. Creates parent dirs as needed and chmods the file to 0600 on Unix-like systems where supported.

Types

type PreEntry

type PreEntry struct {
	Cmd               string
	RequestID         string
	ResolvedChatID    int64
	ResolvedChatTitle string
	TelethonMethod    string
	PayloadPreview    map[string]any
	DryRun            bool
}

PreEntry are the fields written by Pre. Mirrors tgcli.safety.audit_pre.

Jump to

Keyboard shortcuts

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