render

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderArticleListArgs

type RenderArticleListArgs struct {
	CID      store.ChangelogID
	WID      store.WorkspaceID
	Articles []changelog.ParsedArticle
	HasMore  bool
	NextPage int
	PageSize int
}

type RenderChangelogArgs added in v0.3.0

type RenderChangelogArgs struct {
	CL             store.Changelog
	Articles       []changelog.ParsedArticle
	HasMore        bool
	NextPage       int
	PageSize       int
	FeedURL        string
	BaseCSSVersion string
}

type Renderer

type Renderer interface {
	RenderChangelog(ctx context.Context, w io.Writer, args RenderChangelogArgs) error
	RenderArticleList(ctx context.Context, w io.Writer, args RenderArticleListArgs) error
}

func New

func New(cfg config.Config) Renderer

Jump to

Keyboard shortcuts

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