Documentation
¶
Index ¶
- type EmailStreamParser
- func (p *EmailStreamParser) GetSupportedTypes() []string
- func (p *EmailStreamParser) Parse(ctx context.Context, content []byte, metadata map[string]any) (*core.Document, error)
- func (p *EmailStreamParser) ParseStream(ctx context.Context, r io.Reader, metadata map[string]any) (<-chan *core.Document, error)
- func (p *EmailStreamParser) Supports(contentType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailStreamParser ¶
type EmailStreamParser struct {
// contains filtered or unexported fields
}
EmailStreamParser implements an email parser with MIME support
func DefaultEmailStreamParser ¶ added in v1.1.3
func DefaultEmailStreamParser() *EmailStreamParser
DefaultEmailStreamParser creates a new email parser
func (*EmailStreamParser) GetSupportedTypes ¶
func (p *EmailStreamParser) GetSupportedTypes() []string
GetSupportedTypes returns supported formats
func (*EmailStreamParser) Parse ¶
func (p *EmailStreamParser) Parse(ctx context.Context, content []byte, metadata map[string]any) (*core.Document, error)
Parse implements core.Parser interface.
func (*EmailStreamParser) ParseStream ¶
func (p *EmailStreamParser) ParseStream(ctx context.Context, r io.Reader, metadata map[string]any) (<-chan *core.Document, error)
ParseStream reads the incoming io.Reader and yields chunks of the document via a channel
func (*EmailStreamParser) Supports ¶
func (p *EmailStreamParser) Supports(contentType string) bool
Click to show internal directories.
Click to hide internal directories.