Documentation ¶
Overview ¶
GENERATED DO NOT EDIT GENERATOR: scripts/gencode/gencode.go ARGUMENTS: --component server --config ../../../../config/api.oauth.yml --package oauthserver --out-dir . --out ./oauthserver.gen.go --model-package github.com/adamlouis/squirrelbyte/server/pkg/model/oauthmodel
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouter ¶
func RegisterRouter(apiHandler APIHandler, r *mux.Router, c ErrorCoder)
Types ¶
type APIHandler ¶
type APIHandler interface { ListProviders(ctx context.Context, queryParams *oauthmodel.ListOAuthProvidersRequest) (*oauthmodel.ListOAuthProvidersResponse, error) GetOAuthAuthorizationURL(ctx context.Context, pathParams *oauthmodel.GetOAuthAuthorizationURLPathParams) (*oauthmodel.GetOAuthAuthorizationURLResponse, error) GetOAuthToken(ctx context.Context, pathParams *oauthmodel.GetOAuthTokenPathParams, body *oauthmodel.GetOAuthTokenRequest) (*oauthmodel.Token, error) GetOAuthConfig(ctx context.Context, pathParams *oauthmodel.GetOAuthConfigPathParams) (*oauthmodel.Config, error) PutOAuthConfig(ctx context.Context, pathParams *oauthmodel.PutOAuthConfigPathParams, body *oauthmodel.Config) (*oauthmodel.Config, error) DeleteOAuthConfig(ctx context.Context, pathParams *oauthmodel.DeleteOAuthConfigPathParams) error }
func NewAPIHandler ¶
func NewAPIHandler(db *sqlx.DB) APIHandler
type ErrorCoder ¶
type HTTPHandler ¶
type HTTPHandler interface { ListProviders(w http.ResponseWriter, req *http.Request) GetOAuthAuthorizationURL(w http.ResponseWriter, req *http.Request) GetOAuthToken(w http.ResponseWriter, req *http.Request) GetOAuthConfig(w http.ResponseWriter, req *http.Request) PutOAuthConfig(w http.ResponseWriter, req *http.Request) DeleteOAuthConfig(w http.ResponseWriter, req *http.Request) }
type RollbackFn ¶
type RollbackFn func() error
Click to show internal directories.
Click to hide internal directories.