Versions in this module Expand all Collapse all v0 v0.1.0 Mar 19, 2022 Changes in this version + func AddAssets(tarFile string) error + type Article struct + func (a Article) Data() []byte + func (a Article) Path() string + type IndexEntry struct + Metadata IndexMetadata + Path string + type IndexMetadata struct + MimeType string + Redirect bool + Title string + type Node struct + Icon string + MimeType string + Nodes []*Node + Path string + Redirect bool + Title string + type SwarmZimIndexer struct + Z *zim.ZimReader + ZimPath string + func New(zimPath string, enableSearch bool) (*SwarmZimIndexer, error) + func (idx *SwarmZimIndexer) AddEntry(entryPath string, metadata IndexMetadata) + func (idx *SwarmZimIndexer) Entries() map[string]IndexEntry + func (idx *SwarmZimIndexer) MakeErrorPage(tarFile string) error + func (idx *SwarmZimIndexer) MakeIndexSearchPage(tarFile string) error + func (idx *SwarmZimIndexer) MakeRedirectIndexPage(tarFile string) error + func (idx *SwarmZimIndexer) ParseZIM() chan Article + func (idx *SwarmZimIndexer) TarZim(tarFile string, files <-chan Article) error + func (idx *SwarmZimIndexer) UnZim(outputDir string, files <-chan Article) error