package
0.0.0-20210525201852-66ff4a7db9f1
Repository: https://github.com/fanatic/go-githubapp.git
Documentation: pkg.go.dev
# Functions
ClientLogging creates client middleware that logs request and response information at the given level.
ClientMetrics creates client middleware that records metrics about all requests.
DefaultErrorHandler logs errors and responds with a 500 status code.
GetInstallationIDFromEvent returns the installation ID from a GitHub webhook event payload.
NewCachingClientCreator returns a ClientCreator that creates a GitHub client for installations of the app specified by the provided arguments.
NewClientCreator returns a ClientCreator that creates a GitHub client for installations of the app specified by the provided arguments.
NewDefaultCachingClientCreator returns a ClientCreator using values from the configuration or other defaults.
NewDefaultEventDispatcher is a convenience method to create an EventDispatcher from configuration using the default error handler.
NewEventDispatcher creates an http.Handler that dispatches GitHub webhook requests to the appropriate event handlers.
NewInstallationsService returns an InstallationsService that always queries GitHub.
PreparePRContext adds information about a pull request to the logger in a context and returns the modified context and logger.
PrepareRepoContext adds information about a repository to the logger in a context and returns the modified context and logger.
WithClientMiddleware adds middleware that is applied to all created clients.
WithClientUserAgent sets the base user agent for all created clients.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Installation is a minimal representation of a GitHub app installation.
# Interfaces
No description provided by the author
No description provided by the author
InstallationSource is implemented by GitHub webhook event payload types.
InstallationsService retrieves installation information for a given app.
# Type aliases
ClientMiddleware modifes the transport of a GitHub client to add common functionality, like logging or metrics collection.
No description provided by the author
No description provided by the author
InstallationNotFound is returned when no installation exists for a specific owner or repository.