From 722d8218188ddf4c9414a0bf20e22d6a506f8ff1 Mon Sep 17 00:00:00 2001 From: what Date: Sat, 20 Jul 2024 21:00:18 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9E=20ResEventService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res_listener.go => res_event.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename res_listener.go => res_event.go (93%) 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