实现WAF统计数据接口

This commit is contained in:
刘祥超
2021-01-26 18:41:02 +08:00
parent e76441ba8e
commit 6164cebc62
12 changed files with 395 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
package rpcutils
import "context"
type MockNodeContext struct {
context.Context
NodeId int64
}
func NewMockNodeContext(nodeId int64) context.Context {
return &MockNodeContext{NodeId: nodeId}
}