Documentation ¶
Index ¶
- func CompareRes(a, b Result) bool
- func ExtractDocs(repoId string, title string, f io.Reader, contentType string, size int64, ...)
- func ExtractFile(dbName string, path string, w io.Writer) error
- func GetCacheDB() *sql.DB
- func ImportRows(db *sql.DB, all, allMunged, paths *[]string, docsets *[]int, types *[]string, ...)
- func MapType(t string) string
- func Munge(s string) string
- func NewSearcher(index *GlobalIndex, lastQuery *int) searcher
- func SearchAllDocs(self *searcher, inStr string, allowedDocs map[string]bool, ...)
- type ContribItem
- type DashRepo
- func (d DashRepo) GetAvailableForInstall() ([]RepoItem, error)
- func (d DashRepo) GetChapters(id, path string) [][]string
- func (d DashRepo) GetInstalled() []RepoItem
- func (d DashRepo) GetPage(path string, w io.Writer) error
- func (d DashRepo) GetSymbols(index GlobalIndex, id, tp string) [][]string
- func (d DashRepo) ImportAll(idx GlobalIndex)
- func (d DashRepo) IndexDocById(idx GlobalIndex, id string)
- func (d DashRepo) Name() string
- func (d DashRepo) RemoveDocset(id string, idx GlobalIndex) bool
- func (d DashRepo) StartDocsetInstallById(id string, downloadProgressHandlers ProgressHandlers, completed func()) string
- func (d DashRepo) StartDocsetInstallByIo(iostream io.ReadCloser, repoItem RepoItem, len int64, ...) string
- type Docbook
- type DocbookKw
- type DocbookSub
- type DocbooksRepo
- func (d DocbooksRepo) GetAvailableForInstall() ([]RepoItem, error)
- func (d DocbooksRepo) GetChapters(id, path string) [][]string
- func (d DocbooksRepo) GetInstalled() []RepoItem
- func (d DocbooksRepo) GetPage(qPath string, w io.Writer) error
- func (d DocbooksRepo) GetSymbols(index GlobalIndex, id, tp string) [][]string
- func (dr DocbooksRepo) ImportAll(idx GlobalIndex)
- func (dr DocbooksRepo) IndexDocById(idx GlobalIndex, id string)
- func (d DocbooksRepo) Name() string
- func (dr DocbooksRepo) RemoveDocset(id string, idx GlobalIndex) bool
- func (d DocbooksRepo) StartDocsetInstallById(id string, handlers ProgressHandlers, completed func()) string
- func (d DocbooksRepo) StartDocsetInstallByIo(iostream io.ReadCloser, repoItem RepoItem, len int64, ...) string
- type DocsRepo
- type DocsetIcons
- type GlobalIndex
- type ProgressHandlers
- type ReaderWithProgress
- type RepoItem
- type RepoItemExtra
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareRes ¶
func ExtractDocs ¶
func GetCacheDB ¶
func ImportRows ¶
func NewSearcher ¶
func NewSearcher(index *GlobalIndex, lastQuery *int) searcher
Types ¶
type ContribItem ¶
type DashRepo ¶
type DashRepo struct {
// contains filtered or unexported fields
}
func NewDashContribRepo ¶
func NewDashContribRepo() DashRepo
func NewDashLocalRepo ¶
func NewDashLocalRepo() DashRepo
func NewDashRepo ¶
func NewDashRepo() DashRepo
func (DashRepo) GetAvailableForInstall ¶
func (DashRepo) GetChapters ¶
func (DashRepo) GetInstalled ¶
func (DashRepo) GetSymbols ¶
func (d DashRepo) GetSymbols(index GlobalIndex, id, tp string) [][]string
func (DashRepo) ImportAll ¶
func (d DashRepo) ImportAll(idx GlobalIndex)
func (DashRepo) IndexDocById ¶
func (d DashRepo) IndexDocById(idx GlobalIndex, id string)
func (DashRepo) RemoveDocset ¶
func (d DashRepo) RemoveDocset(id string, idx GlobalIndex) bool
func (DashRepo) StartDocsetInstallById ¶
func (d DashRepo) StartDocsetInstallById(id string, downloadProgressHandlers ProgressHandlers, completed func()) string
func (DashRepo) StartDocsetInstallByIo ¶
func (d DashRepo) StartDocsetInstallByIo(iostream io.ReadCloser, repoItem RepoItem, len int64, downloadProgressHandlers ProgressHandlers, completed func()) string
type Docbook ¶
type Docbook struct { XMLName xml.Name `xml:"book"` Language string `xml:"language,attr"` Link string `xml:"link,attr"` Name string `xml:"name,attr"` Title string `xml:"title,attr"` Version string `xml:"version,attr"` Chapters []DocbookSub `xml:"chapters>sub"` Functions []DocbookKw `xml:"functions>function"` Keywords []DocbookKw `xml:"functions>keyword"` }
type DocbookSub ¶
type DocbookSub struct { Link string `xml:"link,attr"` Name string `xml:"name,attr"` Subs []DocbookSub `xml:"sub"` }
type DocbooksRepo ¶
type DocbooksRepo struct {
// contains filtered or unexported fields
}
func NewDocbooksRepo ¶
func NewDocbooksRepo() DocbooksRepo
func (DocbooksRepo) GetAvailableForInstall ¶
func (d DocbooksRepo) GetAvailableForInstall() ([]RepoItem, error)
func (DocbooksRepo) GetChapters ¶
func (d DocbooksRepo) GetChapters(id, path string) [][]string
func (DocbooksRepo) GetInstalled ¶
func (d DocbooksRepo) GetInstalled() []RepoItem
func (DocbooksRepo) GetSymbols ¶
func (d DocbooksRepo) GetSymbols(index GlobalIndex, id, tp string) [][]string
func (DocbooksRepo) ImportAll ¶
func (dr DocbooksRepo) ImportAll(idx GlobalIndex)
func (DocbooksRepo) IndexDocById ¶
func (dr DocbooksRepo) IndexDocById(idx GlobalIndex, id string)
func (DocbooksRepo) Name ¶
func (d DocbooksRepo) Name() string
func (DocbooksRepo) RemoveDocset ¶
func (dr DocbooksRepo) RemoveDocset(id string, idx GlobalIndex) bool
func (DocbooksRepo) StartDocsetInstallById ¶
func (d DocbooksRepo) StartDocsetInstallById(id string, handlers ProgressHandlers, completed func()) string
func (DocbooksRepo) StartDocsetInstallByIo ¶
func (d DocbooksRepo) StartDocsetInstallByIo(iostream io.ReadCloser, repoItem RepoItem, len int64, downloadProgressHandlers ProgressHandlers, completed func()) string
type DocsRepo ¶
type DocsRepo interface { Name() string ImportAll(idx GlobalIndex) GetInstalled() []RepoItem GetAvailableForInstall() ([]RepoItem, error) StartDocsetInstallById(id string, handlers ProgressHandlers, completed func()) string StartDocsetInstallByIo(iostream io.ReadCloser, repoItem RepoItem, len int64, handlers ProgressHandlers, completed func()) string GetSymbols(idx GlobalIndex, id, tp string) [][]string GetChapters(id, path string) [][]string GetPage(path string, w io.Writer) error RemoveDocset(id string, idx GlobalIndex) bool IndexDocById(idx GlobalIndex, id string) }
type DocsetIcons ¶
type GlobalIndex ¶
type GlobalIndex struct { All *[]string AllMunged *[]string Paths *[]string Docsets *[]int Types *[]string DocsetNames *[][]string Lock sync.RWMutex }
func (*GlobalIndex) UpdateWith ¶
func (i *GlobalIndex) UpdateWith(i2 *GlobalIndex)
type ProgressHandlers ¶
func NewProgressHandlers ¶
func NewProgressHandlers() ProgressHandlers
type ReaderWithProgress ¶
type ReaderWithProgress struct {
// contains filtered or unexported fields
}
func NewReaderWithProgress ¶
func NewReaderWithProgress(underlying io.Reader) ReaderWithProgress
type RepoItemExtra ¶
type RepoItemExtra struct {
IndexFilePath string
}
Click to show internal directories.
Click to hide internal directories.