Documentation
¶
Index ¶
- type LoadedChangelog
- type Loader
- func (l *Loader) GetChangelog(r *http.Request) (store.Changelog, error)
- func (l *Loader) LoadAndParse(r *http.Request, page internal.Pagination) (LoadedChangelog, error)
- func (l *Loader) LoadAndParseReleaseNotes(ctx context.Context, cl store.Changelog, page internal.Pagination) (LoadedChangelog, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.