{"modulePath":"github.com/utmstack/UTMStack/plugins/soc-ai","version":"v0.0.0-20261126134315-738f65073a40","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package queue\n\n## Constants\n\n```go\nconst (\n\tDefaultQueueSize   = 1000\n\tDefaultWorkerCount = 5\n\tQueueFullTimeout   = 100 * time.Millisecond\n)\n```\n\n## Functions\n\n```go\nfunc Enqueue(pluginAlert *plugins.Alert) bool\n```\nEnqueue adds an alert to the processing queue (from gRPC).\n\n```go\nfunc EnqueueManual(alertFields *schema.AlertFields, tenantID string) bool\n```\nEnqueueManual adds an alert to the processing queue (from the HTTP API).\n\n```go\nfunc Initialize()\n```\nInitialize creates and starts the alert processing queue.\n\n## Types\n\n```go\ntype AlertQueue struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Item struct {\n\tAlert       *plugins.Alert\n\tAlertFields *schema.AlertFields // for manual submissions (already converted)\n\tTimestamp   time.Time\n\tIsManual    bool\n\tTenantID    string\n}\n```\n\n","path":"github.com/utmstack/UTMStack/plugins/soc-ai/internal/queue","name":"queue","synopsis":"","isRedistributable":true}
