tika

package
v0.0.0-...-bb112c9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedExtensions = []string{
	".pdf",

	".jpg", ".jpeg",
	".png",

	".doc", ".docx",
	".ppt", ".pptx",
	".xls", ".xlsx",
}

Functions

This section is empty.

Types

type Client

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

func New

func New(url string, options ...Option) (*Client, error)

func (*Client) Extract

func (c *Client) Extract(ctx context.Context, input extractor.File, options *extractor.ExtractOptions) (*extractor.Document, error)

type Option

type Option func(*Client)

func WithClient

func WithClient(client *http.Client) Option

type TikaResponse

type TikaResponse struct {
	Content string `json:"X-TIKA:content"`
}

Jump to

Keyboard shortcuts

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