Documentation ¶
Overview ¶
Package operator GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountContext = ioutil.ContextFor[*Account](nil)
Functions ¶
func NeedAdminRole ¶
func NeedAdminRole(roleTypeAndHigher group.RoleType) expression.Expression
func NeedGroupRole ¶
func NeedGroupRole(roleTypeAndHigher group.RoleType) expression.Expression
func WhenGroupEnv ¶
func WhenGroupEnv(envType group.EnvType, then expression.Expression) expression.Expression
Types ¶
type Account ¶
type Account struct { account.User AccountType account.Type `json:"accountType"` AdminRole group.RoleType `json:"adminRole"` GroupRoles map[group.ID]group.RoleType `json:"groupRoles,omitempty"` }
func (*Account) InjectContext ¶
type ValidAccount ¶
type ValidAccount struct { // Bearer access_token Authorization string `name:"Authorization" in:"header"` }
func (*ValidAccount) Output ¶
func (c *ValidAccount) Output(ctx context.Context) (interface{}, error)
func (ValidAccount) RuntimeDoc ¶
func (v ValidAccount) RuntimeDoc(names ...string) ([]string, bool)
Click to show internal directories.
Click to hide internal directories.