common: rabbit refactor

Generalize interface to allow processing of any events, not just
Gitea events.
This commit is contained in:
2025-07-21 22:30:04 +02:00
parent 69dac4ec31
commit 3d24dce5c0
11 changed files with 260 additions and 151 deletions

20
common/rabbitmq_obs.go Normal file
View File

@@ -0,0 +1,20 @@
package common
type RabbitMQObsBuildStatusProcessor struct {
c *RabbitConnection
}
func (o *RabbitMQObsBuildStatusProcessor) GenerateTopics() []string {
}
func (o *RabbitMQObsBuildStatusProcessor) Connection() *RabbitConnection {
if o.c == nil {
o.c = &RabbitConnection{}
}
return o.c
}
func (o *RabbitMQObsBuildStatusProcessor) ProcessRabbitMessage(msg RabbitMessage) error {
}