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