Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTenantId = "tenantId" DefaultUserId = "userId" NoAuthAdminTenantId = "adminTenantId" )
View Source
const (
KContext = "context"
)
Variables ¶
This section is empty.
Functions ¶
func FilterFactory ¶
func FilterFactory() restful.FilterFunction
Types ¶
type Context ¶
type Context struct { TenantId string `json:"tenantId"` IsAdmin bool `json:"isAdmin"` UserId string `json:"userId"` }
func NewAdminContext ¶
func NewAdminContext() *Context
func NewContext ¶
func NewContext() *Context
func NewContextFromJson ¶
Click to show internal directories.
Click to hide internal directories.