reading

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EPUB epub book ext
	EPUB = ".epub"
	// SEP sep
	SEP = ";"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	web.Model

	Author      string    `json:"author"`
	Publisher   string    `json:"publisher"`
	Title       string    `json:"title"`
	Type        string    `json:"type"`
	Lang        string    `json:"lang"`
	File        string    `json:"-"`
	Subject     string    `json:"subject"`
	Description string    `json:"description"`
	PublishedAt time.Time `json:"publishedAt"`
	Cover       string    `json:"cover"`
}

Book book

func (Book) TableName

func (Book) TableName() string

TableName table name

type Engine added in v0.2.0

type Engine struct {
	Db   *gorm.DB  `inject:""`
	I18n *web.I18n `inject:""`
	Jwt  *auth.Jwt `inject:""`
}

Engine engine

func (*Engine) Atom added in v0.2.0

func (p *Engine) Atom(lang string) ([]*atom.Entry, error)

Atom rss.atom

func (*Engine) Mount added in v0.2.0

func (p *Engine) Mount(rt *gin.Engine)

Mount web mount-points

func (*Engine) RegisterWorker added in v0.3.0

func (p *Engine) RegisterWorker()

RegisterWorker register worker

func (*Engine) Shell added in v0.2.0

func (p *Engine) Shell() []cli.Command

Shell shell commands

func (*Engine) Sitemap added in v0.2.0

func (p *Engine) Sitemap() ([]stm.URL, error)

Sitemap sitemap.xml.gz

type Note added in v0.4.1

type Note struct {
	web.Model
	Type   string
	Body   string
	UserID uint
	User   auth.User
	BookID uint
	Book   Book
}

Note note

func (Note) TableName added in v0.4.1

func (Note) TableName() string

TableName table name

Jump to

Keyboard shortcuts

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