render

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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 RenderIndexArgs

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

type Renderer

type Renderer interface {
	RenderIndex(ctx context.Context, w io.Writer, args RenderIndexArgs) 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