Function
NewClientSession
(ctx context.Context, clientConn *websocket.Conn, agentWriter writeMessage, sessionID uuid.UUID)
Source from the content-addressed store, hash-verified
| 17 | type writeMessage func(int, []byte) error |
| 18 | |
| 19 | func NewClientSession(ctx context.Context, clientConn *websocket.Conn, agentWriter writeMessage, sessionID uuid.UUID) (*ClientSession, error) { |
| 20 | return &ClientSession{ |
| 21 | ctx: ctx, |
| 22 | sessionID: sessionID, |
| 23 | clientConn: clientConn, |
| 24 | agentWriter: agentWriter, |
| 25 | done: closed, |
| 26 | }, nil |
| 27 | } |
| 28 | |
| 29 | type ClientSession struct { |
| 30 | ctx context.Context |
Tested by
no test coverage detected