diff options
Diffstat (limited to 'internal/clients/handlers/handler.go')
| -rw-r--r-- | internal/clients/handlers/handler.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/clients/handlers/handler.go b/internal/clients/handlers/handler.go index afa87e2..c1f7256 100644 --- a/internal/clients/handlers/handler.go +++ b/internal/clients/handlers/handler.go @@ -2,14 +2,20 @@ 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 + ReportServerError(message string) SendMessage(command string) error Server() string Status() int Shutdown() Done() <-chan struct{} + WaitForCapabilities(timeout time.Duration) bool + WaitForSessionAck(timeout time.Duration) (SessionAck, bool) } |
