This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAPI/internal/rpc/utils/mock_node.go
T
2021-01-26 18:41:02 +08:00

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}
}