withSession adds the session to the context.
(ctx context.Context, s *models.Session)
| 103 | |
| 104 | // withSession adds the session to the context. |
| 105 | func withSession(ctx context.Context, s *models.Session) context.Context { |
| 106 | return context.WithValue(ctx, sessionKey, s) |
| 107 | } |
| 108 | |
| 109 | // getSession reads the session from the context. |
| 110 | func getSession(ctx context.Context) *models.Session { |
no outgoing calls
no test coverage detected