CtxExtract is a convenience wrapper around the other context convenience methods to pull out everything you'd want from a request.
(ctx context.Context)
| 27 | // CtxExtract is a convenience wrapper around the other context convenience |
| 28 | // methods to pull out everything you'd want from a request. |
| 29 | func CtxExtract(ctx context.Context) (*zerolog.Logger, *Config, *User) { |
| 30 | return CtxLogger(ctx), CtxConfig(ctx), CtxUser(ctx) |
| 31 | } |
| 32 | |
| 33 | // CtxSetConfig puts the given Config into the ssh.Context. |
| 34 | func CtxSetConfig(parent ssh.Context, config *Config) { |