diff --git a/internal/service/defs.go b/internal/service/defs.go index 2384b2c..2bfb30a 100644 --- a/internal/service/defs.go +++ b/internal/service/defs.go @@ -1,5 +1,8 @@ package service +const deleteFactsType = "direct.delete.facts" +const deleteProblemsType = "direct.delete.problems" + type DirectDeleteMessage struct { Type string `json:"type"` EnvironmentId int `json:"environmentId"` diff --git a/internal/service/service.go b/internal/service/service.go index 2169f67..61610e3 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -23,9 +23,6 @@ type routerInstance struct { WriteToQueue bool } -const deleteFactsType = "direct.delete.facts" -const deleteProblemsType = "direct.delete.problems" - func SetupRouter(secret string, messageQWriter func(data []byte) error, writeToQueue bool) *gin.Engine { router := gin.Default() r := routerInstance{secret: secret}