Documentation ¶
Index ¶
- func IsWeightEstimatorFile(appCtx appcontext.AppContext, file io.ReadCloser) (bool, error)
- func NewWeightTicketComputer() services.WeightTicketComputer
- func NewWeightTicketParserGenerator(pdfGenerator *paperwork.Generator) (services.WeightTicketGenerator, error)
- type WeightTicketComputer
- type WeightTicketGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWeightEstimatorFile ¶
func IsWeightEstimatorFile(appCtx appcontext.AppContext, file io.ReadCloser) (bool, error)
func NewWeightTicketComputer ¶
func NewWeightTicketComputer() services.WeightTicketComputer
NewWeightTicketComputer creates a WeightTicketComputer
func NewWeightTicketParserGenerator ¶
func NewWeightTicketParserGenerator(pdfGenerator *paperwork.Generator) (services.WeightTicketGenerator, error)
NewWeightTicketParserGenerator creates a WeightTicketParserGenerator
Types ¶
type WeightTicketComputer ¶
type WeightTicketComputer struct { }
WeightTicketComputer is the concrete struct implementing the services.weightticketparser interface
func (*WeightTicketComputer) ParseWeightEstimatorExcelFile ¶
func (WeightTicketComputer *WeightTicketComputer) ParseWeightEstimatorExcelFile(appCtx appcontext.AppContext, file io.ReadCloser) (*services.WeightEstimatorPages, error)
Parses a Weight Estimator Spreadsheet file and returns services.WeightEstimatorPages populated with the parsed data
type WeightTicketGenerator ¶
type WeightTicketGenerator struct {
// contains filtered or unexported fields
}
WeightTicketGenerator is the concrete struct implementing the services.weightticketparser interface
func (*WeightTicketGenerator) FillWeightEstimatorPDFForm ¶
func (WeightTicketParserGenerator *WeightTicketGenerator) FillWeightEstimatorPDFForm(PageValues services.WeightEstimatorPages, fileName string) (afero.File, *pdfcpu.PDFInfo, error)
FillWeightEstimatorPDFForm takes form data and fills an existing Weight Estimaator PDF template with data
Click to show internal directories.
Click to hide internal directories.