summaryrefslogtreecommitdiff
path: root/internal/clients/handlers/handler.go
blob: afa87e2c7f3f34c2a7653307ea4e42697e8208d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package handlers

import (
	"io"
)

// Handler provides all methods which can be run on any client handler.
type Handler interface {
	io.ReadWriter
	SendMessage(command string) error
	Server() string
	Status() int
	Shutdown()
	Done() <-chan struct{}
}