init: publisher

This commit is contained in:
sujit
2024-09-27 14:41:34 +05:45
parent cbace15f0c
commit e29c16f192
5 changed files with 84 additions and 66 deletions

18
constants.go Normal file
View File

@@ -0,0 +1,18 @@
package mq
type CMD int
const (
SUBSCRIBE CMD = iota + 1
PUBLISH
REQUEST
STOP
)
var (
ConsumerKey = "Consumer-Key"
PublisherKey = "Publisher-Key"
ContentType = "Content-Type"
TypeJson = "application/json"
HeaderKey = "headers"
)