Documentation
¶
Index ¶
Constants ¶
View Source
const APIVersion = 1
Variables ¶
This section is empty.
Functions ¶
func GetSocketPath ¶
func GetSocketPath() string
func NewHumaConfig ¶
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTP ¶
func NewHTTP(addr string, indexer api.IndexerInterface, watcher api.WatcherInterface) *HTTPServer
func (*HTTPServer) Start ¶
func (s *HTTPServer) Start() error
type IndexerInterface ¶
type IndexerInterface interface {
Search(query string, limit int) (*bleve.SearchResult, error)
SearchWithOptions(opts *indexer.SearchOptions) (*bleve.SearchResult, error)
SearchAll(opts *indexer.SearchOptions) (*indexer.SearchResult, error)
ReindexAll() error
SyncIncremental() error
Stats() *config.IndexStats
ListFiles(prefix string, limit int) ([]indexer.FileEntry, int, error)
}
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(indexer IndexerInterface, watcher WatcherInterface) *Router
type ServerInfo ¶
type ServerInfo struct {
APIVersion int `json:"apiVersion"`
}
type UnixServer ¶
type UnixServer struct {
// contains filtered or unexported fields
}
func NewUnix ¶
func NewUnix(router *Router) *UnixServer
func (*UnixServer) Close ¶
func (s *UnixServer) Close() error
func (*UnixServer) Start ¶
func (s *UnixServer) Start() error
type WatcherInterface ¶
Click to show internal directories.
Click to hide internal directories.