webserver

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 11 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL