kiwix

package
v0.0.0-...-a3f3dab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2017 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTaskUpdateSources

func NewTaskUpdateSources() tasks.Taskable

Types

type TaskUpdateSources

type TaskUpdateSources struct {
	// contains filtered or unexported fields
}

func (*TaskUpdateSources) Do

func (t *TaskUpdateSources) Do(updates chan tasks.Progress)

Do performs the task

func (*TaskUpdateSources) SetDatastore

func (t *TaskUpdateSources) SetDatastore(store datastore.Datastore)

TaskUpdateSources task needs to talk to an underlying database it's expected that the task executor will call this method before calling Do

func (*TaskUpdateSources) Valid

func (t *TaskUpdateSources) Valid() error

type Zim

type Zim struct {
	// Name of the project that's been archived
	Project string
	// ISO Language code
	Language string
	// Size String (eg: "11M" or "5.4G")
	Size string
	// Created Date in form YYYY-MM
	Created string
	// Weather it's all content or not
	FullContent bool
	// url to get MD5 entry
	Md5Url string
	// md5 checksum for download
	Md5 string
	// download url
	Url string
}

Zim represents a Zim package on the Kiwix service

func FetchZims

func FetchZims() ([]*Zim, error)

func (*Zim) FetchMd5

func (z *Zim) FetchMd5() error

func (*Zim) Title

func (z *Zim) Title() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL