mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			219 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			219 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package rpcutils
 | 
						|
 | 
						|
import "context"
 | 
						|
 | 
						|
type MockAdminNodeContext struct {
 | 
						|
	context.Context
 | 
						|
 | 
						|
	AdminId int64
 | 
						|
}
 | 
						|
 | 
						|
func NewMockAdminNodeContext(adminId int64) context.Context {
 | 
						|
	return &MockAdminNodeContext{AdminId: adminId}
 | 
						|
}
 |