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

import (
	"context"

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

// Connector interface.
type Connector interface {
	// Start the connection.
	Start(ctx context.Context, cancel context.CancelFunc, throttleCh, statsCh chan struct{})
	// Server hostname.
	Server() string
	// Handler for the connection.
	Handler() handlers.Handler
}