Newer
Older
sisyphe-go / struct.go
@Nacim Nacim on 15 Feb 2022 955 bytes change struct json
package main

type MetadataPDF struct {
	Author           string `json:"author"`
	Creator          string `json:"creator"`
	CreationDate     string `json:"creationDate"`
	PDFFormatVersion string `json:"PDFFormatVersion"`
}
type MessagePDF struct {
	pdfWordCount  int
	pdfPageTotal  int
	pdfWordByPage int
	pdfError      string
	pdfMetadata   MetadataPDF
}

type DoctypeXML struct {
	Name  string `json:"name"`
	Pubid string `json:"pubid"`
	Sysid string `json:"sysid"`
}

type WellFormedErrorXML struct {
	Message string `json:"message"`
	File    string `json:"file"`
}

type MessageXML struct {
	isWellFormed     bool
	wellFormedErrors WellFormedErrorXML
	doctype          DoctypeXML
	metadataXML      struct{}
}

type Message struct {
	corpusName   string
	name         string
	startAt      string
	extension    string
	path         string
	mimetype     string
	mimeEncoding string
	size         int64
	pdf          MessagePDF
	xml          MessageXML
}