X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a6d6a57a908b1cac8ebcc5bc4261b7c906d249a4..16c01c88acf2a11d2e764278dcb1fb9aaa582559:/services/ws/session.go diff --git a/services/ws/session.go b/services/ws/session.go index d469737bd8..53b02146d5 100644 --- a/services/ws/session.go +++ b/services/ws/session.go @@ -1,5 +1,15 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main +import ( + "database/sql" + + "git.arvados.org/arvados.git/sdk/go/arvados" +) + type session interface { // Receive processes a message received from the client. If a // non-nil error is returned, the connection will be @@ -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)