endpoint

package
v0.0.0-...-ab38acb Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default is the default GitHub api endpoint.
	Default = "https://api.github.com"
)

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

Endpoint holds the GitHub API endpoint URL.

func New

func New() (*Endpoint, error)

New returns a new endpoint with the default GitHub API URL.

func NewEnterprise

func NewEnterprise(url string) (*Endpoint, error)

NewEnterprise returns a new endpoint with the provided GitHub Enterprise API URL.

func (*Endpoint) Get

func (e *Endpoint) Get(uri string) (string, error)

Get returns the full GitHub api endpoint for the provided uri.

Jump to

Keyboard shortcuts

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