Documentation
¶
Overview ¶
Package messagequeue holds Stovepipe's internal message-queue contract: the wire payloads for the pipeline queues Stovepipe owns, defined by the proto files in proto/ and generated into protopb/. The proto is the language-neutral authority; the generated Go types in protopb are the binding for Go callers.
It is internal — used only within the Stovepipe domain — so it lives under stovepipe/core rather than api/. The message types are generated into protopb; this package adds only generic protojson glue (Marshal/Unmarshal) and the topic-key reflection lookup (TopicKeys), so there is no per-message serialization code. Payloads are serialized as protobuf JSON, not binary, so the MySQL-backed queue keeps storing self-describing JSON. The topic key that carries each payload is declared on the message itself via the topic_keys proto option (see api/base/messagequeue).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal serializes any contract message to protojson bytes for the queue payload, keeping the proto field names (snake_case) on the wire.
Types ¶
type BuildAnalysis ¶
type BuildAnalysis = protopb.BuildAnalysis
BuildAnalysis identifies the build whose issue observations are polled.
type BuildRequest ¶
type BuildRequest = protopb.BuildRequest
BuildRequest is the payload process/analyze publishes to the build stage: the request id to build.
type BuildSignal ¶
type BuildSignal = protopb.BuildSignal
BuildSignal is the payload build publishes to the buildsignal stage, and buildsignal re-publishes to itself while polling: the build id to poll.
type FixRequest ¶
type FixRequest = protopb.FixRequest
FixRequest identifies the build whose issues should be considered for repair.
type IssueTrack ¶
type IssueTrack = protopb.IssueTrack
IssueTrack identifies persisted build observations for queue-scoped reconciliation.
type ProcessRequest ¶
type ProcessRequest = protopb.ProcessRequest
ProcessRequest is the payload ingest publishes to the process stage: the minted request id to validate.
type ProjectAnalysis ¶
type ProjectAnalysis = protopb.ProjectAnalysis
ProjectAnalysis requests project-status resolution and issue attribution.
type TopicKey ¶
TopicKey is the typed identifier used to look up a queue backend, topic name, and subscription config in a consumer.TopicRegistry. The constants below are the logical topic keys for Stovepipe's internal pipeline stages; they are the same strings each message lists in its topic_keys option.
const ( // TopicKeyProcess carries newly accepted requests from ingest to the process // stage. ingest publishes a ProcessRequest (the request id) here; the process // controller consumes it, reloads the Request, and decides the build strategy. TopicKeyProcess TopicKey = "process" // TopicKeyBuild carries requests whose build scope has been decided from // process/analyze to the build stage. The producer publishes a BuildRequest // (the request id) here; the build controller consumes it, reloads the // Request, and triggers the build. Partitioned by request id. TopicKeyBuild TopicKey = "build" // TopicKeyBuildSignal carries builds to poll from build to the buildsignal // stage, and from buildsignal back to itself between polls. Producers // publish a BuildSignal (the build id) here; the buildsignal controller // consumes it, polls the build runner, and records terminal status. // Partitioned by build id, so each build's poll loop is an independent // partition. TopicKeyBuildSignal TopicKey = "buildsignal" // TopicKeyBuildAnalysis carries build IDs for issue detection, partitioned by build ID. TopicKeyBuildAnalysis TopicKey = "buildanalysis" // TopicKeyIssueTrack carries persisted observation notifications, partitioned by queue. TopicKeyIssueTrack TopicKey = "issuetrack" // TopicKeyFix carries build IDs for repair submission, partitioned by build ID. TopicKeyFix TopicKey = "fix" // TopicKeyProjectAnalysis queues requests for project-status resolution and issue attribution. TopicKeyProjectAnalysis TopicKey = "projectanalysis" // TopicKeyRecord carries requests after project analysis, or directly after cancellation. // Partitioned by request ID. TopicKeyRecord TopicKey = "record" )