Versions in this module Expand all Collapse all v0 v0.3.0 Mar 30, 2026 Changes in this version + const ApprovalIDPrefix + const DefaultAuditQueryLimit + const MaxRequestBodySize + const SSEChannelBufferSize + const ShutdownTimeout + type ApprovalQueue struct + func (q *ApprovalQueue) Add(req policy.ActionRequest, result policy.CheckResult) *PendingAction + func (q *ApprovalQueue) Broadcast(event AuditEvent) + func (q *ApprovalQueue) List() []*PendingAction + func (q *ApprovalQueue) Resolve(id string, decision policy.Decision) error + func (q *ApprovalQueue) Subscribe() chan AuditEvent + func (q *ApprovalQueue) Unsubscribe(ch chan AuditEvent) + type AuditEvent struct + Request policy.ActionRequest + Result policy.CheckResult + Timestamp time.Time + Type string + type Config struct + APIKey string + AllowedOrigin string + BaseURL string + DashboardEnabled bool + Engine *policy.Engine + Logger audit.Logger + Notifier *notify.Dispatcher + Port int + Version string + type PendingAction struct + CreatedAt time.Time + Decision string + ID string + Request policy.ActionRequest + Resolved bool + Result policy.CheckResult + type Server struct + func NewServer(cfg Config) *Server + func (s *Server) Shutdown() + func (s *Server) Start() error