githubroot

package
v2.0.0-dev.22 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package githubroot derives a GitHub instance's API roots from its web base, for every package that reaches GitHub's API: the github client and the creds package's App source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(web *url.URL) string

API is the REST root under the web base, used where the connection names no API base of its own.

The hosted instance serves its API on a host of its OWN rather than under the web base, which is why this is a branch rather than a suffix: the routes the expectation table spells carry no prefix because that host's root is the prefix. Every other instance is an appliance, whose documented root is a version segment under its own web base.

func Document

func Document(api *url.URL) string

Document is where a connection posts its GraphQL documents, derived from the REST root it resolved: beside the REST routes on an appliance, whose root carries a version segment the document endpoint does not, and under the API host on the hosted instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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