handlers

package
v0.0.0-...-e29e17f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Tika *tika.Client
	// contains filtered or unexported fields
}

App represents the application and configuration

func NewApp

func NewApp(t *tika.Client) *App

NewApp returns a new instance of App with config and DB connections loaded

func (*App) Parse

func (a *App) Parse() func(http.ResponseWriter, *http.Request, httprouter.Params)

Parse an uploaded file and return results from apache tika

func (*App) ServeHTTP

func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP satisfies the http handler interface so App can perform as an http server

Jump to

Keyboard shortcuts

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