19088: Document S3 properties-as-metadata feature.
[arvados.git] / services / ws / session.go
index d469737bd8aab3a2357aa6e0984cc9a2202c3443..c0cfbd6d02f6ff37083f426c85084effae45f212 100644 (file)
@@ -1,4 +1,14 @@
-package main
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+package ws
+
+import (
+       "database/sql"
+
+       "git.arvados.org/arvados.git/sdk/go/arvados"
+)
 
 type session interface {
        // Receive processes a message received from the client. If a
@@ -23,3 +33,5 @@ type session interface {
        // up, the connection will be dropped.
        EventMessage(*event) ([]byte, error)
 }
+
+type sessionFactory func(wsConn, chan<- interface{}, *sql.DB, permChecker, *arvados.Client) (session, error)