Documentation
¶
Index ¶
- type ForgejoFile
- type ID
- type LoadResult
- type RawReleaseNote
- type Source
- func NewFJSourceFromStore(cfg config.Config, fj store.FJSource, cache xcache.Cache) (Source, error)
- func NewGHSourceFromStore(cfg config.Config, gh store.GHSource, cache xcache.Cache) (Source, error)
- func NewGLSourceFromStore(cfg config.Config, gl store.GLSource, cache xcache.Cache) (Source, error)
- func NewLocalSourceFromStore(s store.LocalSource, cache xcache.Cache) Source
- func NewSourceFromStore(cfg config.Config, cl store.Changelog, cache xcache.Cache) (Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForgejoFile ¶ added in v0.8.1
type ForgejoFile struct {
URL string
}
type ID ¶
type ID string
A unique identifier for a source
func NewForgejoID ¶ added in v0.8.1
func NewGitHubID ¶
func NewGitLabID ¶ added in v0.8.0
func NewIDFromChangelog ¶
func NewLocalID ¶
type LoadResult ¶
type LoadResult struct {
Raw []RawReleaseNote
HasMore bool
}
func (LoadResult) HasChanged ¶
func (r LoadResult) HasChanged() bool
Returns if any of the loaded release notes have changed since last access.
type RawReleaseNote ¶
type Source ¶
type Source interface {
Load(ctx context.Context, page internal.Pagination) (LoadResult, error)
ID() ID
}
A source can be used to load raw release notes from a (remote) source like GitHub.
func NewFJSourceFromStore ¶ added in v0.8.1
func NewGHSourceFromStore ¶
func NewGLSourceFromStore ¶ added in v0.8.0
func NewLocalSourceFromStore ¶
func NewLocalSourceFromStore(s store.LocalSource, cache xcache.Cache) Source
Click to show internal directories.
Click to hide internal directories.