实现WAF统计数据接口

This commit is contained in:
GoEdgeLab
2021-01-26 18:41:02 +08:00
parent 2f9fe99088
commit e7a01c567f
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}
}