load

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadedChangelog

type LoadedChangelog struct {
	CL      store.Changelog
	Notes   []parse.ParsedReleaseNote
	HasMore bool
}

type Loader

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

The loader combines the source and parse package. It first loads the raw release notes using the source package and then parses it using the parse package.

func NewLoader

func NewLoader(
	cfg config.Config,
	store store.Store,
	cache xcache.Cache,
	parser parse.Parser,
	e *mint.Emitter,
) *Loader

Creates a new Loader.

func (*Loader) GetChangelog

func (l *Loader) GetChangelog(r *http.Request) (store.Changelog, error)

Returns the changelog of the request.

func (*Loader) LoadAndParse

func (l *Loader) LoadAndParse(r *http.Request, page internal.Pagination) (LoadedChangelog, error)

Loads the changelog and parses it's release notes for the specified http request.

func (*Loader) LoadAndParseReleaseNotes

func (l *Loader) LoadAndParseReleaseNotes(ctx context.Context, cl store.Changelog, page internal.Pagination) (LoadedChangelog, error)

Loads and parses the release notes for the specified changelog.

Jump to

Keyboard shortcuts

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