processors

package
v0.0.0-...-e1b65c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

README

Package cloudeng.io/file/content/processors

import cloudeng.io/file/content/processors

Package processor provides support for processing different content types.

Types

Type Email
type Email struct{}
Type EmailDoc
type EmailDoc struct {
	From    string          // Email address of the sender
	To      []*mail.Address // List of recipient email addresses
	Subject string          // Subject of the email
	Date    string          // Date the email was sent
	Body    []byte          // Body of the email
	Raw     []byte          // Raw email content
	Labels  []string        // Labels or tags associated with the email
}
Methods
func (EmailDoc) Parse(rawEmail []byte) (EmailDoc, error)
Type HTML
type HTML struct{}

HTML provides support for processing HTML documents.

Methods
func (ho HTML) Parse(rd io.Reader) (HTMLDoc, error)
Type HTMLDoc
type HTMLDoc struct {
	// contains filtered or unexported fields
}
Methods
func (ho HTMLDoc) HREFs(base string) ([]string, error)

HREFs returns the hrefs found in the provided HTML document.

func (ho HTMLDoc) Title() string

Documentation

Overview

Package processor provides support for processing different content types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML struct{}

HTML provides support for processing HTML documents.

func (HTML) Parse

func (ho HTML) Parse(rd io.Reader) (HTMLDoc, error)

type HTMLDoc

type HTMLDoc struct {
	// contains filtered or unexported fields
}

func (HTMLDoc) HREFs

func (ho HTMLDoc) HREFs(base string) ([]string, error)

HREFs returns the hrefs found in the provided HTML document.

func (HTMLDoc) Title

func (ho HTMLDoc) Title() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL