github

package
v0.0.0-...-0bb336d Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShortName   = "github"
	FullName    = "GitHub"
	HostType    = "hosting"
	SourceURL   = "https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses"
	DownloadURL = "https://api.github.com/meta"
)

Variables

This section is empty.

Functions

func ProcessData

func ProcessData(data []byte) ([]netip.Prefix, error)

Types

type GitHub

type GitHub struct {
	Client      *retryablehttp.Client
	DownloadURL string
	Timeout     time.Duration
}

func New

func New() GitHub

func (*GitHub) Fetch

func (gh *GitHub) Fetch() ([]netip.Prefix, error)

func (*GitHub) FetchData

func (gh *GitHub) FetchData() ([]byte, http.Header, int, error)

Jump to

Keyboard shortcuts

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