diff options
Diffstat (limited to 'internal/clients/connectors/connector.go')
| -rw-r--r-- | internal/clients/connectors/connector.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/clients/connectors/connector.go b/internal/clients/connectors/connector.go index a803c33..c1211ec 100644 --- a/internal/clients/connectors/connector.go +++ b/internal/clients/connectors/connector.go @@ -5,6 +5,7 @@ import ( "time" "github.com/mimecast/dtail/internal/clients/handlers" + sessionspec "github.com/mimecast/dtail/internal/session" ) // Connector interface. @@ -18,4 +19,10 @@ type Connector interface { // SupportsQueryUpdates reports whether the connected server advertised // runtime query replacement support within the given timeout. SupportsQueryUpdates(timeout time.Duration) bool + // ApplySessionSpec starts or updates the interactive session workload on an + // already connected server when query updates are supported. + ApplySessionSpec(spec sessionspec.Spec, timeout time.Duration) error + // CommittedSession returns the last session spec and generation that the + // server acknowledged for this connection. + CommittedSession() (sessionspec.Spec, uint64, bool) } |
