audit

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package audit provides audit logging for MCP tool calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	Timestamp string `json:"ts"`
	Agent     string `json:"agent"`
	Action    string `json:"action"`
	Path      string `json:"path,omitempty"`
	Field     string `json:"field,omitempty"`
	Transport string `json:"transport,omitempty"`
	Reason    string `json:"reason,omitempty"`
	DurMs     int64  `json:"dur_ms,omitempty"`
	OK        bool   `json:"ok"`
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(agentName string) (*Logger, error)

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) LogEntry

func (l *Logger) LogEntry(entry LogEntry)

Jump to

Keyboard shortcuts

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