From 83cb2e525da2c9af722d138b7c4174f9dd0ec261 Mon Sep 17 00:00:00 2001 From: Yusuf Can Bayrak Date: Tue, 23 Jul 2024 12:14:57 +0200 Subject: [PATCH] #420 initial commit for dynamically removal of the hooks --- server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.go b/server.go index 7efd5a00..96423f82 100644 --- a/server.go +++ b/server.go @@ -283,6 +283,11 @@ func (s *Server) AddHooksFromConfig(hooks []HookLoadConfig) error { return nil } +// RemoveHook removes a hook from the server by its ID. +func (s *Server) RemoveHook(id string) error { + return errors.New("not implemented") +} + // AddListener adds a new network listener to the server, for receiving incoming client connections. func (s *Server) AddListener(l listeners.Listener) error { if _, ok := s.Listeners.Get(l.ID()); ok {