1 Star 0 Fork 0

蒙蒙的男孩/eosc

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
filter.go 551 Bytes
Copy Edit Raw Blame History
蒙蒙的男孩 authored 2024-01-10 13:49 +08:00 . 重定义项目地址
package grpc_context
import (
"gitee.com/meng_mengs_boys/eosc/eocontext"
"gitee.com/meng_mengs_boys/eosc/utils/config"
)
var (
FilterSkillName = config.TypeNameOf((*GrpcFilter)(nil))
)
type GrpcFilter interface {
DoGrpcFilter(ctx IGrpcContext, next eocontext.IChain) (err error)
}
func DoGrpcFilter(filter GrpcFilter, ctx eocontext.EoContext, next eocontext.IChain) (err error) {
grpcContext, err := Assert(ctx)
if err == nil {
return filter.DoGrpcFilter(grpcContext, next)
}
if next != nil {
return next.DoChain(ctx)
}
return err
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/meng_mengs_boys/eosc.git
git@gitee.com:meng_mengs_boys/eosc.git
meng_mengs_boys
eosc
eosc
v1.15.7

Search