Documentation ¶
Overview ¶
Package webserver implements a json api for the client to be able to access results from the web.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized happens when an unauthorized access occur.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { UserStore user.Store CrawlerConfigStore crawlerconfig.Store UserResultsStore results.Store RSAPublic []byte RSAPrivate []byte CrawlerClient api.Crawler }
Config contains parameters to initialize the webserver.
type Webserver ¶
type Webserver struct {
// contains filtered or unexported fields
}
Webserver serves as a global context for the server.
func NewWebserver ¶
NewWebserver creates a new webserver object.
Click to show internal directories.
Click to hide internal directories.