engine

package
v0.0.0-...-5b668fc Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	// Meta will extract meta information from a template
	Meta(tpl *types.Template) (map[string]interface{}, error)

	ExportAccounts(writer io.Writer, tpl *types.Template, accounts []*types.Account) error
	ExportClients(writer io.Writer, tpl *types.Template, clients []*types.Client) error
	ExportProjects(writer io.Writer, tpl *types.Template, projects []*types.Project) error
	ExportInvoices(writer io.Writer, tpl *types.Template, invoices []*types.Invoice, account *types.Account) error
}

Engine interface represents various exporting engines

func New

func New(what string, config *types.Config, fsys fs.FS) (Engine, error)

New will attempt to create an exporting engine given the name of the engine, general configuration and a file system that contains assets that may be referenced in the templates.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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