diff --git a/res_listener.go b/res_event.go similarity index 93% rename from res_listener.go rename to res_event.go index 1fab6a8..7366e6d 100644 --- a/res_listener.go +++ b/res_event.go @@ -6,7 +6,11 @@ import ( "github.com/samber/lo" ) -type ResEvent string +type ResEventService interface { + Start() error + Stop() error + Restart() error +} type ResListener interface { Insert(new map[string]any, u req.User, id int64) error