Documentation ¶
Overview ¶
+gengo:operator:register=R +gengo:operator:tag=auth
Package auth GENERATED BY gengo:operator DON'T EDIT THIS FILE
Package auth GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var R = courier.NewRouter(courierhttp.Group("/auth"))
Functions ¶
This section is empty.
Types ¶
type ExchangeToken ¶
type ExchangeToken struct { courierhttp.MethodPost `path:"/token"` TokenExchanger }
func (*ExchangeToken) EndpointRole ¶
func (r *ExchangeToken) EndpointRole() string
func (*ExchangeToken) ResponseContent ¶
func (*ExchangeToken) ResponseContent() any
func (*ExchangeToken) ResponseErrors ¶
func (*ExchangeToken) ResponseErrors() []error
func (ExchangeToken) RuntimeDoc ¶
func (v ExchangeToken) RuntimeDoc(names ...string) ([]string, bool)
type ExchangeTokenAlias ¶
type ExchangeTokenAlias struct { courierhttp.MethodGet `path:"/token"` Authorization string `name:"Authorization,omitempty" in:"header"` TokenExchanger }
func (*ExchangeTokenAlias) Output ¶
func (a *ExchangeTokenAlias) Output(ctx context.Context) (any, error)
func (*ExchangeTokenAlias) ResponseContent ¶
func (*ExchangeTokenAlias) ResponseContent() any
func (*ExchangeTokenAlias) ResponseErrors ¶
func (*ExchangeTokenAlias) ResponseErrors() []error
func (ExchangeTokenAlias) RuntimeDoc ¶
func (v ExchangeTokenAlias) RuntimeDoc(names ...string) ([]string, bool)
type Qrcode ¶
type Qrcode struct {
courierhttp.MethodGet `path:"/qrcode"`
}
func (*Qrcode) ResponseContent ¶
type TokenExchanger ¶
type TokenExchanger struct { ClientID string `name:"client_id,omitempty" in:"query"` GrantType string `name:"grant_type,omitempty" in:"query"` RefreshToken string `name:"refresh_token,omitempty" in:"query"` Scope string `name:"scope,omitempty" in:"query"` }
func (TokenExchanger) RuntimeDoc ¶
func (v TokenExchanger) RuntimeDoc(names ...string) ([]string, bool)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.