{"modulePath":"github.com/uber/submitqueue","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package process\n\nPackage process holds the process-stage queue controller. It consumes the request ids ingest publishes, reloads the Request from storage, and (in a future change) decides the build strategy by asking SourceControl how the new head relates to the queue's last-green URI. For now it is a thin consumer that reloads and logs the request, establishing the stage and its wiring.\n\n## Types\n\n```go\ntype Controller struct {\n\t// contains filtered or unexported fields\n}\n```\nController consumes ProcessRequest messages from the process stage, reloads the referenced Request from storage, and logs it. Implements consumer.Controller.\n\n```go\nfunc NewController(\n\tlogger *zap.SugaredLogger,\n\tscope tally.Scope,\n\tstore storage.Storage,\n\ttopicKey consumer.TopicKey,\n\tconsumerGroup string,\n) *Controller\n```\nNewController creates a new process controller.\n\n```go\nfunc (c *Controller) ConsumerGroup() string\n```\nConsumerGroup returns the consumer group for offset tracking.\n\n```go\nfunc (c *Controller) Name() string\n```\nName returns the controller name for logging and metrics.\n\n```go\nfunc (c *Controller) Process(ctx context.Context, delivery consumer.Delivery) (retErr error)\n```\nProcess reloads the request referenced by the delivery and logs it. Returns nil to ack (success) or an error to nack (retry). A not-yet-visible request is retryable: ingest persists and publishes, but a stale read may not see the row yet, so redelivery converges.\n\n```go\nfunc (c *Controller) TopicKey() consumer.TopicKey\n```\nTopicKey returns the topic key this controller subscribes to.\n\n","path":"github.com/uber/submitqueue/stovepipe/controller/process","name":"process","synopsis":"Package process holds the process-stage queue controller.","isRedistributable":true}
