Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(format string, creator ArticleExporterCreator)
Register an article Exporter to the registry
Types ¶
type ArticleExporter ¶
type ArticleExporter interface { // Export an article to a specific format Export(ctx context.Context, article *model.Article) (*downloader.WebAsset, error) }
ArticleExporter is service used to export an article to a specific format.
func NewArticleExporter ¶
func NewArticleExporter(format string, dl downloader.Downloader) (ArticleExporter, error)
NewArticleExporter create new article Exporter
type ArticleExporterCreator ¶
type ArticleExporterCreator func(dl downloader.Downloader) (ArticleExporter, error)
ArticleExporterCreator function for create an article exporter
Click to show internal directories.
Click to hide internal directories.