fetch

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package fetch provides GitHub release fetching functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

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

Fetcher coordinates fetching releases from multiple GitHub sources.

func NewFetcher

func NewFetcher(config *releaselog.Config) *Fetcher

NewFetcher creates a new Fetcher with the given configuration. It uses the GITHUB_TOKEN environment variable for authentication.

func NewFetcherWithClient

func NewFetcherWithClient(config *releaselog.Config, client *github.Client) *Fetcher

NewFetcherWithClient creates a new Fetcher with a custom GitHub client.

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(ctx context.Context) (*releaselog.ReleaseLog, error)

Fetch fetches all releases from configured sources.

func (*Fetcher) SetLogger

func (f *Fetcher) SetLogger(logger *slog.Logger)

SetLogger sets the logger for the fetcher.

Jump to

Keyboard shortcuts

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