Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // An API for adding links to the link graph. GraphAPI GraphAPI // An API for executing queries against indexed documents. IndexAPI IndexAPI // The port to listen for incoming requests. ListenAddr string // The number of results to display per page. If not specified, a default // value of 10 results per page will be used instead. ResultsPerPage int // The maximum length (in characters) of the highlighted content summary for // matching documents. If not specified, a default value of 256 will be used // instead. MaxSummaryLength int // The logger to use. If not defined an output-discarding logger will // be used instead. Logger *logrus.Entry }
Config encapsulates the settings for configuring the front-end service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the front-end component for the Links 'R' Us project.
func NewService ¶
NewService creates a new front-end service instance with the specified config.
Click to show internal directories.
Click to hide internal directories.