api

package
v0.0.0-...-0206da9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Obj       obj.Config
	Scraper   scraper.Config
	Db        db.Config
	ServePort uint16
	Logger    logger.ClientConfig
}

type Server

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

func NewServer

func NewServer(cfg Config, errHandler func(error)) (s *Server, err error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Query

func (s *Server) Query(w http.ResponseWriter, r *http.Request)

func (*Server) Scrape

func (s *Server) Scrape(w http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

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