server

package
v0.0.0-...-af1d2b6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: CC-BY-SA-4.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPI

func NewAPI(bindAddr string, storage storage.Temp) (*http.Server, error)

NewAPI retorna um servidor HTTP pré-configurado que guarda as informações temporárias no storage informado

Types

type Crawl

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

Crawl expões as operações de baixar e guardar arquivos em um storage temporário

func (*Crawl) FetchData

func (c *Crawl) FetchData(w http.ResponseWriter, req *http.Request)

FetchData inicia um novo processo de coleta (caso exista necessidade), caso contrário, retorna a última coleta feita.

type CrawlerList

type CrawlerList struct {
}

CrawlerList retorna a lista de crawlers cadastrada atualmente

func (CrawlerList) GetAvailable

func (c CrawlerList) GetAvailable(w http.ResponseWriter, req *http.Request)

GetAvailable retorna a lista de crawlers que está atualmente disponíveis

Jump to

Keyboard shortcuts

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