Documentation
¶
Index ¶
Constants ¶
View Source
const ( ParserVersion = "phase2-parser-v1" SchemaVersion = "message.v2" MaxEMLBytes = 25 * 1024 * 1024 MaxIndexedBytes = 2 * 1024 * 1024 UnknownShape = "unknown" LowConfidence = "low" MediumConfidence = "medium" HighConfidence = "high" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v0.2.0
type CalendarEvent ¶ added in v0.2.0
type Confidence ¶ added in v0.2.0
type Confidence struct {
Score float64 `json:"score"`
Label string `json:"label"`
Reasons []string `json:"reasons"`
}
func NewConfidence ¶ added in v0.2.0
func NewConfidence(score float64, reasons ...string) Confidence
type ImportError ¶ added in v0.2.0
type ImportError struct {
Kind string `json:"kind"`
What string `json:"what"`
Why string `json:"why"`
NowWhat string `json:"nowWhat"`
}
func (ImportError) Error ¶ added in v0.2.0
func (err ImportError) Error() string
type ImportResult ¶
type ImportWarning ¶ added in v0.2.0
type Message ¶
type Message struct {
ID string `json:"id"`
SourceID string `json:"sourceId"`
Subject string `json:"subject"`
From string `json:"from"`
To []string `json:"to"`
Date time.Time `json:"date"`
Snippet string `json:"snippet"`
Body string `json:"body"`
PrimaryBody string `json:"primaryBody"`
Shape string `json:"shape"`
Tags []string `json:"tags"`
Confidence Confidence `json:"confidence"`
FieldConfidence map[string]Confidence `json:"fieldConfidence"`
Warnings []ImportWarning `json:"warnings"`
Attachments []Attachment `json:"attachments"`
Calendar *CalendarEvent `json:"calendar,omitempty"`
Provenance Provenance `json:"provenance"`
}
func DemoMessages ¶
Click to show internal directories.
Click to hide internal directories.