Documentation ¶
Overview ¶
+gengo:operator:register=R +gengo:operator:tag=admin
Package admin GENERATED BY gengo:operator DON'T EDIT THIS FILE
Package admin GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var R = courier.NewRouter(&authoperator.ValidAccount{})
Functions ¶
This section is empty.
Types ¶
type DeleteAdminAccount ¶
type DeleteAdminAccount struct { courierhttp.MethodDelete `path:"/admin/accounts/:accountID"` AccountID account.ID `name:"accountID" in:"path"` }
func (DeleteAdminAccount) MiddleOperators ¶
func (DeleteAdminAccount) MiddleOperators() courier.MiddleOperators
func (*DeleteAdminAccount) Output ¶
func (p *DeleteAdminAccount) Output(ctx context.Context) (any, error)
func (*DeleteAdminAccount) ResponseContent ¶
func (*DeleteAdminAccount) ResponseContent() any
func (DeleteAdminAccount) RuntimeDoc ¶
func (v DeleteAdminAccount) RuntimeDoc(names ...string) ([]string, bool)
type ListAccount ¶
type ListAccount struct { courierhttp.MethodGet `path:"/accounts"` account.UserQueryParams }
func (*ListAccount) ResponseContent ¶
func (*ListAccount) ResponseContent() any
func (ListAccount) RuntimeDoc ¶
func (v ListAccount) RuntimeDoc(names ...string) ([]string, bool)
type ListAdminAccount ¶
type ListAdminAccount struct { courierhttp.MethodGet `path:"/admin/accounts"` group.UserQueryParams }
func (*ListAdminAccount) Output ¶
func (p *ListAdminAccount) Output(ctx context.Context) (any, error)
func (*ListAdminAccount) ResponseContent ¶
func (*ListAdminAccount) ResponseContent() any
func (ListAdminAccount) RuntimeDoc ¶
func (v ListAdminAccount) RuntimeDoc(names ...string) ([]string, bool)
type PutAdminAccount ¶
type PutAdminAccount struct { courierhttp.MethodPut `path:"/admin/accounts/:accountID"` AccountID account.ID `name:"accountID" in:"path"` group.RoleInfo `in:"body"` }
func (PutAdminAccount) MiddleOperators ¶
func (PutAdminAccount) MiddleOperators() courier.MiddleOperators
func (*PutAdminAccount) ResponseContent ¶
func (*PutAdminAccount) ResponseContent() any
func (PutAdminAccount) RuntimeDoc ¶
func (v PutAdminAccount) RuntimeDoc(names ...string) ([]string, bool)
Click to show internal directories.
Click to hide internal directories.