Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIndexNotReady = errors.New("index not ready; call /api/v1/index/refresh or restart with successful startup indexing")
Functions ¶
This section is empty.
Types ¶
type IndexManager ¶
type IndexManager struct {
// contains filtered or unexported fields
}
func NewIndexManager ¶
func NewIndexManager(rootOverride string) *IndexManager
func (*IndexManager) Refresh ¶
func (m *IndexManager) Refresh(ctx context.Context) (IndexSnapshot, error)
func (*IndexManager) Snapshot ¶
func (m *IndexManager) Snapshot() IndexSnapshot
func (*IndexManager) WithWorkspace ¶
func (m *IndexManager) WithWorkspace(fn func(ws *workspace.Workspace) error) error
type IndexSnapshot ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(mgr *IndexManager, opts ServerOptions) *Server
type ServerOptions ¶
type ServerOptions struct {
CORSOrigin string
}
Click to show internal directories.
Click to hide internal directories.