Documentation
¶
Index ¶
Constants ¶
View Source
const RightsNone = 0
View Source
const (
RightsUser = 1 << iota // in hex:0x1 - 1
)
Variables ¶
View Source
var ( ErrNoMethod = iErr.NotFound(40001, "no method") ErrNoToken = iErr.Unauthorized(40002, "no token") ErrNoPermission = iErr.Forbidden(40003, "no permission") )
View Source
var RightsMap = map[string]int32{ "RightsUser": RightsUser, }
for example
Functions ¶
func ServerAuthWrapper ¶
func ServerAuthWrapper(rights map[string]Auth) server.HandlerWrapper
Types ¶
Click to show internal directories.
Click to hide internal directories.