Repository navigation
Expand file tree
/
Copy pathmaintainer_cdb-schema.go
More file actions
54 lines (47 loc) · 1.86 KB
/
Copy pathmaintainer_cdb-schema.go
File metadata and controls
54 lines (47 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) 2026 Benjamin Borbe All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package lib
import "github.com/bborbe/cqrs/cdb"
// CDBSchemaIDs lists every CQRS schema published by the maintainer pipeline.
// trading/strimzi/topic-controller imports this slice and provisions the
// matching Kafka topics (one trio of request/event/result topics per ID).
var CDBSchemaIDs = cdb.SchemaIDs{
GithubPRReviewV1SchemaID,
GithubReleaserV1SchemaID,
GithubBuildV1SchemaID,
GithubDarkFactoryV1SchemaID,
}
// GithubPRReviewV1SchemaID is the schema for the github-pr watcher's command
// topic. Carries Trigger-style commands consumed by the watcher pod to drive
// the pr-reviewer pipeline.
var GithubPRReviewV1SchemaID = cdb.SchemaID{
Group: "maintainer",
Kind: "githubprreview",
Version: "v1",
}
// GithubReleaserV1SchemaID is the schema for the github-release watcher's
// command topic. Carries Trigger-style commands consumed by the watcher pod
// to drive the github-releaser pipeline.
var GithubReleaserV1SchemaID = cdb.SchemaID{
Group: "maintainer",
Kind: "githubreleaser",
Version: "v1",
}
// GithubBuildV1SchemaID is the schema for the github-build watcher's
// command topic. Carries Trigger-style commands consumed by the watcher pod
// to drive the build-fixer pipeline.
var GithubBuildV1SchemaID = cdb.SchemaID{
Group: "maintainer",
Kind: "githubbuild",
Version: "v1",
}
// GithubDarkFactoryV1SchemaID is the schema for the github-dark-factory
// watcher's command topic. Carries Trigger-style commands consumed by the
// watcher pod to force a draft PR (with an approved spec) into the
// dark-factory-implement pipeline immediately, bypassing the poll interval.
var GithubDarkFactoryV1SchemaID = cdb.SchemaID{
Group: "maintainer",
Kind: "githubdarkfactory",
Version: "v1",
}