Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserTypeNone = "none" UserTypeAdmin = "admin" UserTypeUser = "user" UserTypeProvider = "provider" UserTypeNode = "node" UserTypeCluster = "cluster" UserTypeMonitor = "monitor" UserTypeStat = "stat" UserTypeDNS = "dns" UserTypeLog = "log" UserTypeAPI = "api" UserTypeAuthority = "authority" UserTypeReport = "report" )
Variables ¶
This section is empty.
Functions ¶
func NewMockAdminNodeContext ¶
func NewMockNodeContext ¶
Types ¶
type MockAdminNodeContext ¶
type MockNodeContext ¶
type PlainContext ¶
func NewPlainContext ¶
func NewPlainContext(userType string, userId int64) *PlainContext
func (*PlainContext) Done ¶
func (this *PlainContext) Done() <-chan struct{}
func (*PlainContext) Err ¶
func (this *PlainContext) Err() error
func (*PlainContext) Value ¶
func (this *PlainContext) Value(key interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.