Пример #1
0
func FromContext(ctx *engine.Context) (*Client, bool) {
	cfg, ok := ctx.Value(ctxKey).(*Client)
	return cfg, ok
}
Пример #2
0
func FromContext(ctx *engine.Context) (Config, bool) {
	cfg, ok := ctx.Value(ctxKey).(Config)
	return cfg, ok
}