hooks

package
v1.7.22 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastReport

func BroadcastReport(event ReportEvent)

func CanReport

func CanReport(orgId int) bool

func RegisterCanReportHook

func RegisterCanReportHook(fn CanReportHook)

func RegisterReportHook

func RegisterReportHook(fn func(ReportEvent))

Types

type AiTraceInfo

type AiTraceInfo struct {
	TraceName string
	TotalCost float64
}

type CanReportHook

type CanReportHook func(orgId int) bool

type ReportEvent

type ReportEvent struct {
	OrganizationId  int
	ProjectId       uuid.UUID
	EndpointCount   int
	ErrorCount      int
	TaskCount       int
	RecordingCount  int
	ExceptionHashes []string
	AiTraces        []AiTraceInfo
}

Jump to

Keyboard shortcuts

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