Document session context canceling (#50)

This commit is contained in:
Shuanglei Tao 2017-08-01 02:53:11 +08:00 committed by Jeff Lindsay
parent cff9b0cc85
commit 9ccc7bbb64

@ -50,6 +50,9 @@ type Session interface {
// Context returns the connection's context. The returned context is always
// non-nil and holds the same data as the Context passed into auth
// handlers and callbacks.
//
// The context is canceled when the client's connection closes or I/O
// operation fails.
Context() context.Context
// Permissions returns a copy of the Permissions object that was available for