Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions api/stovepipe/proto/stovepipe.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,26 @@ message PingResponse {
string hostname = 4;
}

// IngestRequest is the request for the Ingest method. The poller reports that a queue
// (a named repo+ref) has a new commit to validate.
Comment thread
behinddwalls marked this conversation as resolved.
message IngestRequest {
// Logical queue name to validate (e.g. "monorepo/main"). It namespaces the minted
// request ID and is the stable handle for the repo+ref being validated.
string queue = 1;
}

// IngestResponse is the response for the Ingest method.
message IngestResponse {
// The minted request ID, namespaced by queue. Format: "request/<queue>/<counter>"
// (e.g. "request/monorepo/main/42").
string id = 1;
}

// Stovepipe provides the Stovepipe API.
service Stovepipe {
// Ping returns a response indicating the service is alive
rpc Ping(PingRequest) returns (PingResponse) {}
// Ingest admits a queue's newly observed commit into the validation pipeline and returns
// the minted request ID. The caller hands off asynchronously; validation happens later.
rpc Ingest(IngestRequest) returns (IngestResponse) {}
}
122 changes: 113 additions & 9 deletions api/stovepipe/protopb/stovepipe.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 72 additions & 18 deletions api/stovepipe/protopb/stovepipe.pb.yarpc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading