Newer
Older
sisyphe-go / struct.go
@Nacim Nacim on 10 Feb 2022 713 bytes refactor code
package main

type LogMetadataPDF struct {
	Author           string
	Creator          string
	CreationDate     string
	pdfFormatVersion string
}
type LogMessagePDF struct {
	pdfWordCount  int
	pdfPageTotal  int
	pdfWordByPage int
	pdfMetadata   LogMetadataPDF
	pdfError      string
}

type DoctypeXML struct {
	name  string
	pubid string
	sysid string
}

type LogMessageXML struct {
	isWellFormed     bool
	wellFormedErrors string
	doctype          DoctypeXML
}

type LogMessage struct {
	corpusName   string
	name         string
	startAt      string
	extension    string
	path         string
	mimetype     string
	mimeEncoding string
	size         int64
	pdf          LogMessagePDF
	xml          LogMessageXML
}