Documentation ¶
Index ¶
- func AddAssets(tarFile string) error
- type Article
- type IndexEntry
- type IndexMetadata
- type Node
- type SwarmZimIndexer
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexEntry ¶
type IndexEntry struct { Path string Metadata IndexMetadata }
type IndexMetadata ¶
type SwarmZimIndexer ¶
type SwarmZimIndexer struct { ZimPath string Z *zim.ZimReader // contains filtered or unexported fields }
func (*SwarmZimIndexer) AddEntry ¶
func (idx *SwarmZimIndexer) AddEntry(entryPath string, metadata IndexMetadata)
func (*SwarmZimIndexer) Entries ¶
func (idx *SwarmZimIndexer) Entries() map[string]IndexEntry
func (*SwarmZimIndexer) MakeErrorPage ¶
func (idx *SwarmZimIndexer) MakeErrorPage(tarFile string) error
MakeErrorPage creates an error page
func (*SwarmZimIndexer) MakeIndexSearchPage ¶
func (idx *SwarmZimIndexer) MakeIndexSearchPage(tarFile string) error
MakeIndexSearchPage creates a custom index with the text search tool and embed the current main page in the new index.
func (*SwarmZimIndexer) MakeRedirectIndexPage ¶
func (idx *SwarmZimIndexer) MakeRedirectIndexPage(tarFile string) error
MakeRedirectIndexPage creates an redirect index to the main page when it exists in the zim archive.
func (*SwarmZimIndexer) ParseZIM ¶
func (idx *SwarmZimIndexer) ParseZIM() chan Article
Click to show internal directories.
Click to hide internal directories.