示例#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
}