summaryrefslogtreecommitdiff
path: root/internal/clients/handlers/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/clients/handlers/handler.go')
-rw-r--r--internal/clients/handlers/handler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/clients/handlers/handler.go b/internal/clients/handlers/handler.go
index afa87e2..aebebaa 100644
--- a/internal/clients/handlers/handler.go
+++ b/internal/clients/handlers/handler.go
@@ -2,14 +2,18 @@ package handlers
import (
"io"
+ "time"
)
// Handler provides all methods which can be run on any client handler.
type Handler interface {
io.ReadWriter
+ Capabilities() []string
+ HasCapability(name string) bool
SendMessage(command string) error
Server() string
Status() int
Shutdown()
Done() <-chan struct{}
+ WaitForCapabilities(timeout time.Duration) bool
}