Skip to content

Commit

Permalink
Moves consts to defs file
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Dec 14, 2023
1 parent cc25d37 commit e152517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions internal/service/defs.go
Original file line number Diff line number Diff line change
@@ -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"`
Expand Down
3 changes: 0 additions & 3 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e152517

Please sign in to comment.