mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +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}
 | 
						|
}
 |