pdf

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentManager added in v0.31.0

type ContentManager interface {
	Page(ctx context.Context, key string) (PageContent, error)
}

type Generator

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

func NewGenerator

func NewGenerator(content ContentManager) *Generator

func (*Generator) GenerateInvoice

func (g *Generator) GenerateInvoice(ctx context.Context, invoice *rest.Invoice) (io.Reader, error)

func (*Generator) GeneratePageContent added in v0.31.0

func (g *Generator) GeneratePageContent(ctx context.Context, key string) (io.Reader, error)

type PageContent added in v0.31.0

type PageContent struct {
	LastUpdated time.Time
	Heading     string
	Body        RichTextContent
}

type RichTextContent added in v0.31.0

type RichTextContent struct {
	NodeType string
	Value    string
	Data     any
	Content  []RichTextContent
}

Jump to

Keyboard shortcuts

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