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

import (
	"context"
	"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
	WithCancel(ctx context.Context) (context.Context, context.CancelFunc)
	Done() <-chan struct{}
}