mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:11:54 +08:00
14 lines
200 B
Go
14 lines
200 B
Go
package rpcutils
|
|
|
|
import "context"
|
|
|
|
type MockNodeContext struct {
|
|
context.Context
|
|
|
|
NodeId int64
|
|
}
|
|
|
|
func NewMockNodeContext(nodeId int64) context.Context {
|
|
return &MockNodeContext{NodeId: nodeId}
|
|
}
|