Implement api

This commit is contained in:
d1slike committed 2024-05-08 15:40:14 +03:00
1 parent 80a99c425b
commit b2e34c00a4
30 files changed
+708 -69

No files matched your search

+1 -10
View File
@@ -6,17 +6,8 @@ import (
"isp-config-service/entity/xtypes"
)
type EventType int
const (
Unknown EventType = iota
ConfigUpdated
ModuleReady
ModuleDisconnected
)
type Event struct {
RowId int `json:"rowid"`
Id int `json:"id"`
Payload xtypes.Json[EventPayload] `json:"payload"`
}