Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is the handler that handles the authentication flow against a provider that a user either wants to login with, or connect to.
func (Provider) Auth ¶
func (h Provider) Auth(w http.ResponseWriter, r *http.Request)
Auth will authenticate the user via the provider in the request. If a user is logging in for the first time via a provider, then we create an account for them and link it to the provider. Otherwise we simply connect the provider to the current user's account.
type Repo ¶
Repo is the handler that handles the adding and removing of webhooks to a repo on the provider.
func (Repo) Destroy ¶
func (h Repo) Destroy(w http.ResponseWriter, r *http.Request)
Destroy will remove the webhook from the repo in the request.
func (Repo) Index ¶
func (h Repo) Index(w http.ResponseWriter, r *http.Request)
Index serves the HTML response detailing the repositories retrieved from the provider in the request. It will first attempt to get the repositores from the cache, if the cache is empty then the API is hit, and the cache stores the response for 1 hour.