go-hep.org/x/hep@v0.38.1/xrootd/bind.go (about) 1 // Copyright ©2018 The go-hep Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package xrootd // import "go-hep.org/x/hep/xrootd" 6 7 import ( 8 "context" 9 10 "go-hep.org/x/hep/xrootd/xrdproto" 11 "go-hep.org/x/hep/xrootd/xrdproto/bind" 12 ) 13 14 func (sess *cliSession) bind(ctx context.Context, sessionID [16]byte) (xrdproto.PathID, error) { 15 var resp bind.Response 16 _, err := sess.Send(ctx, &resp, &bind.Request{SessionID: sessionID}) 17 // TODO: should we react somehow to redirection? 18 return resp.PathID, err 19 }