Documentation ¶
Index ¶
- Constants
- func MakeFormTemplate(data interface{}, fileName string, formLayout paperworkforms.FormLayout, ...) (services.FormTemplate, error)
- func NewFormCreator(fileStorer FileStorer, formFiller FormFiller) services.FormCreator
- func NewMoveUserUploadToPDFDownloader(pdfGenerator *paperwork.Generator) (services.PrimeDownloadMoveUploadPDFGenerator, error)
- func NewPDFMerger() services.PDFMerger
- func NewUserUploadToPDFConverter(userUploader *uploader.UserUploader) services.UserUploadToPDFConverter
- type FileStorer
- type FormFiller
Constants ¶
View Source
const ( // GotenbergProtocol is the environment variable that contains the protocol to use when communicating with // Gotenberg. GotenbergProtocol string = "GOTENBERG_PROTOCOL" // GotenbergHost is the environment variable that contains the host to use when communicating with Gotenberg. GotenbergHost string = "GOTENBERG_HOST" // GotenbergPort is the environment variable that contains the port to use when communicating with Gotenberg. GotenbergPort string = "GOTENBERG_PORT" )
These are helper constants to make it easier to refer to the expected environment variables.
Variables ¶
This section is empty.
Functions ¶
func MakeFormTemplate ¶
func MakeFormTemplate(data interface{}, fileName string, formLayout paperworkforms.FormLayout, formType services.FormType) (services.FormTemplate, error)
MakeFormTemplate creates form template with all needed parameters from handler
func NewFormCreator ¶
func NewFormCreator(fileStorer FileStorer, formFiller FormFiller) services.FormCreator
NewFormCreator creates a new struct with service dependencies
func NewMoveUserUploadToPDFDownloader ¶
func NewMoveUserUploadToPDFDownloader(pdfGenerator *paperwork.Generator) (services.PrimeDownloadMoveUploadPDFGenerator, error)
NewMoveUserUploadToPDFDownloader creates a new userUploadToPDFDownloader struct with the service dependencies
func NewPDFMerger ¶
NewPDFMerger creates a new pdfMerger struct
func NewUserUploadToPDFConverter ¶
func NewUserUploadToPDFConverter(userUploader *uploader.UserUploader) services.UserUploadToPDFConverter
NewUserUploadToPDFConverter creates a new userUploadToPDFConverter struct with the service dependencies
Types ¶
type FileStorer ¶
FileStorer is an interface for fileStorer implementation
type FormFiller ¶
type FormFiller interface { AppendPage(io.ReadSeeker, map[string]paperworkforms.FieldPos, interface{}) error Output(io.Writer) error }
FormFiller is an interface for formFiller implementation
Source Files ¶
Click to show internal directories.
Click to hide internal directories.