Documentation ¶
Index ¶
- func RegisterRoutesBothAuthService(router wrouter.Router, impl BothAuthService) error
- func RegisterRoutesCookieAuthService(router wrouter.Router, impl CookieAuthService) error
- func RegisterRoutesHeaderAuthService(router wrouter.Router, impl HeaderAuthService) error
- func RegisterRoutesSomeHeaderAuthService(router wrouter.Router, impl SomeHeaderAuthService) error
- type BothAuthService
- type BothAuthServiceClient
- type BothAuthServiceClientWithAuth
- type CookieAuthService
- type CookieAuthServiceClient
- type CookieAuthServiceClientWithAuth
- type HeaderAuthService
- type HeaderAuthServiceClient
- type HeaderAuthServiceClientWithAuth
- type SomeHeaderAuthService
- type SomeHeaderAuthServiceClient
- type SomeHeaderAuthServiceClientWithAuth
- func NewSomeHeaderAuthServiceClientWithAuth(client SomeHeaderAuthServiceClient, authHeader bearertoken.Token) SomeHeaderAuthServiceClientWithAuth
- func NewSomeHeaderAuthServiceClientWithTokenProvider(client SomeHeaderAuthServiceClient, tokenProvider httpclient.TokenProvider) SomeHeaderAuthServiceClientWithAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutesBothAuthService ¶
func RegisterRoutesBothAuthService(router wrouter.Router, impl BothAuthService) error
RegisterRoutesBothAuthService registers handlers for the BothAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.
func RegisterRoutesCookieAuthService ¶
func RegisterRoutesCookieAuthService(router wrouter.Router, impl CookieAuthService) error
RegisterRoutesCookieAuthService registers handlers for the CookieAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.
func RegisterRoutesHeaderAuthService ¶
func RegisterRoutesHeaderAuthService(router wrouter.Router, impl HeaderAuthService) error
RegisterRoutesHeaderAuthService registers handlers for the HeaderAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.
func RegisterRoutesSomeHeaderAuthService ¶
func RegisterRoutesSomeHeaderAuthService(router wrouter.Router, impl SomeHeaderAuthService) error
RegisterRoutesSomeHeaderAuthService registers handlers for the SomeHeaderAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.
Types ¶
type BothAuthService ¶
type BothAuthServiceClient ¶
type BothAuthServiceClient interface { Default(ctx context.Context, authHeader bearertoken.Token) (string, error) Cookie(ctx context.Context, cookieToken bearertoken.Token) error None(ctx context.Context) error WithArg(ctx context.Context, authHeader bearertoken.Token, argArg string) error }
func NewBothAuthServiceClient ¶
func NewBothAuthServiceClient(client httpclient.Client) BothAuthServiceClient
type BothAuthServiceClientWithAuth ¶
type BothAuthServiceClientWithAuth interface { Default(ctx context.Context) (string, error) Cookie(ctx context.Context) error None(ctx context.Context) error WithArg(ctx context.Context, argArg string) error }
func NewBothAuthServiceClientWithAuth ¶
func NewBothAuthServiceClientWithAuth(client BothAuthServiceClient, authHeader bearertoken.Token, cookieToken bearertoken.Token) BothAuthServiceClientWithAuth
type CookieAuthService ¶
type CookieAuthService interface {
Cookie(ctx context.Context, cookieToken bearertoken.Token) error
}
type CookieAuthServiceClient ¶
type CookieAuthServiceClient interface {
Cookie(ctx context.Context, cookieToken bearertoken.Token) error
}
func NewCookieAuthServiceClient ¶
func NewCookieAuthServiceClient(client httpclient.Client) CookieAuthServiceClient
type CookieAuthServiceClientWithAuth ¶
func NewCookieAuthServiceClientWithAuth ¶
func NewCookieAuthServiceClientWithAuth(client CookieAuthServiceClient, cookieToken bearertoken.Token) CookieAuthServiceClientWithAuth
func NewCookieAuthServiceClientWithTokenProvider ¶
func NewCookieAuthServiceClientWithTokenProvider(client CookieAuthServiceClient, tokenProvider httpclient.TokenProvider) CookieAuthServiceClientWithAuth
type HeaderAuthService ¶
type HeaderAuthServiceClient ¶
type HeaderAuthServiceClient interface {
Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
}
func NewHeaderAuthServiceClient ¶
func NewHeaderAuthServiceClient(client httpclient.Client) HeaderAuthServiceClient
type HeaderAuthServiceClientWithAuth ¶
func NewHeaderAuthServiceClientWithAuth ¶
func NewHeaderAuthServiceClientWithAuth(client HeaderAuthServiceClient, authHeader bearertoken.Token) HeaderAuthServiceClientWithAuth
func NewHeaderAuthServiceClientWithTokenProvider ¶
func NewHeaderAuthServiceClientWithTokenProvider(client HeaderAuthServiceClient, tokenProvider httpclient.TokenProvider) HeaderAuthServiceClientWithAuth
type SomeHeaderAuthService ¶
type SomeHeaderAuthServiceClient ¶
type SomeHeaderAuthServiceClient interface { Default(ctx context.Context, authHeader bearertoken.Token) (string, error) None(ctx context.Context) error }
func NewSomeHeaderAuthServiceClient ¶
func NewSomeHeaderAuthServiceClient(client httpclient.Client) SomeHeaderAuthServiceClient
type SomeHeaderAuthServiceClientWithAuth ¶
type SomeHeaderAuthServiceClientWithAuth interface { Default(ctx context.Context) (string, error) None(ctx context.Context) error }
func NewSomeHeaderAuthServiceClientWithAuth ¶
func NewSomeHeaderAuthServiceClientWithAuth(client SomeHeaderAuthServiceClient, authHeader bearertoken.Token) SomeHeaderAuthServiceClientWithAuth
func NewSomeHeaderAuthServiceClientWithTokenProvider ¶
func NewSomeHeaderAuthServiceClientWithTokenProvider(client SomeHeaderAuthServiceClient, tokenProvider httpclient.TokenProvider) SomeHeaderAuthServiceClientWithAuth