Documentation
¶
Overview ¶
Package web serves the whodar web UI: a search page and a JSON ask API over the same engine the CLI uses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Ask resolves queries; required.
Ask AskFunc
// Feedback records votes on results; nil disables the feedback API.
Feedback FeedbackFunc
// Person returns full person profiles; nil disables the person API.
Person PersonFunc
// Version is shown in the page footer.
Version string
}
Config configures the web handler.
type FeedbackFunc ¶ added in v0.1.10
FeedbackFunc records a user's vote on one result.
type PersonFunc ¶ added in v0.1.15
type PersonFunc func(id string) (resolve.JSONProfile, bool)
PersonFunc returns the full profile for a person identifier, or false when the person is unknown.
Click to show internal directories.
Click to hide internal directories.