Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*Config
// contains filtered or unexported fields
}
Client encapsulates an HTTP client for talking to the configured GitHub App.
type Config ¶
type Config struct {
// AppID is the application identifier of the GitHub App.
AppID int `json:"app_id"`
// InsID is the installation identifier of the GitHub App.
InsID int `json:"ins_id"`
// PrvKey is the private for signing GitHub access token requests (JWTs).
// NOTE: Should be in a PEM PKCS#1 RSAPrivateKey format.
PrvKey string `json:"prv_key"`
// BaseURL is the base URL for API requests.
// Defaults to GitHub's public API.
BaseURL string `json:"base_url"`
}
Config holds all configuration for the backend.
Click to show internal directories.
Click to hide internal directories.