mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 01:50:25 +08:00
实现WAF统计数据接口
This commit is contained in:
13
internal/rpc/utils/mock_node.go
Normal file
13
internal/rpc/utils/mock_node.go
Normal 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}
|
||||
}
|
||||
Reference in New Issue
Block a user