mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 20:32:13 +01:00
adding test for printer package
This commit is contained in:
@@ -3,6 +3,7 @@ package printer
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/conf"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/xcontext"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/xerror"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/xexec"
|
||||
@@ -22,6 +23,14 @@ type MergePrinterOptions struct {
|
||||
WaitTimeout float64
|
||||
}
|
||||
|
||||
// DefaultMergePrinterOptions returns the default
|
||||
// merge Printer options.
|
||||
func DefaultMergePrinterOptions(config conf.Config) MergePrinterOptions {
|
||||
return MergePrinterOptions{
|
||||
WaitTimeout: config.DefaultWaitTimeout(),
|
||||
}
|
||||
}
|
||||
|
||||
// NewMergePrinter returns a Printer which
|
||||
// is able to merge PDFs.
|
||||
func NewMergePrinter(logger xlog.Logger, fpaths []string, opts MergePrinterOptions) Printer {
|
||||
|
||||
Reference in New Issue
Block a user