summaryrefslogtreecommitdiff
path: root/internal/clients/maker.go
blob: d5ffd8baa9de6e6aebbccb0637c10c9645949680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package clients

import (
	"github.com/mimecast/dtail/internal/clients/handlers"
)

// maker interface helps to re-use code in all DTail client implementations.
// All clients share the baseClient but have different connection handlers
// and send different commands to the DTail server.
type maker interface {
	makeHandler(server string) handlers.Handler
	makeCommands() (commands []string)
}