1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: further optimizations and caching to speed up metrics endpoint (resolve #215)

This commit is contained in:
Ferdinand Mütsch
2021-06-27 11:33:14 +02:00
parent 407925ec53
commit 181aefa2f9
2 changed files with 94 additions and 8 deletions

View File

@@ -8,9 +8,11 @@ type ApplicationEvent struct {
}
const (
TopicUser = "user.*"
EventUserUpdate = "user.update"
FieldPayload = "payload"
TopicUser = "user.*"
TopicHeartbeat = "heartbeat.*"
EventUserUpdate = "user.update"
EventHeartbeatCreate = "heartbeat.create"
FieldPayload = "payload"
)
var eventHub *hub.Hub