Documentation
¶
Index ¶
Constants ¶
View Source
const NotFoundError = "not found"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiFetcher ¶
type ApiFetcher struct {
// contains filtered or unexported fields
}
func NewGitHubAPIFetcher ¶
func NewGitHubAPIFetcher(client *github.Client) *ApiFetcher
func (*ApiFetcher) Fetch ¶
func (f *ApiFetcher) Fetch(target internal.GitHubTarget, path string) ([]byte, error)
type GitHubContentFetcher ¶
type GitHubContentFetcher interface {
Fetch(target internal.GitHubTarget, path string) ([]byte, error)
}
type GitHubHandler ¶
type GitHubHandler struct {
// contains filtered or unexported fields
}
func NewGitHubHandler ¶
func NewGitHubHandler( fetcher GitHubContentFetcher, ) *GitHubHandler
func (*GitHubHandler) AddRootSite ¶
func (h *GitHubHandler) AddRootSite(target internal.GitHubTarget) *GitHubHandler
func (*GitHubHandler) AddSite ¶
func (h *GitHubHandler) AddSite(route string, target internal.GitHubTarget) *GitHubHandler
func (*GitHubHandler) ServeHTTP ¶
func (h *GitHubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.