package main import ( "time" "src.opensuse.org/autogits/common" "github.com/rabbitmq/amqp091-go" ) const ( GitAuthor = "GiteaBot - Obs Staging" ObsBuildBot = "/obsbuild" ) var GiteaToken string var runId uint func allocateRequestHandler() *common.RequestHandler { runId++ return &common.RequestHandler { Logger: &common.StdoutLogging{ Id: runId, Date: time.Now(), }, } } func main() { var defs common.ListenDefinitions defs.Url = ObsBuildBot defs.GitAuthor = GitAuthor common.RequireGiteaSecretToken() common.RequireObsSecretToken() }