reading

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 25 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 Note

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

Note note

func (Note) TableName

func (Note) TableName() string

TableName table name

type Plugin

type Plugin struct {
	Db       *gorm.DB           `inject:""`
	Jwt      *auth.Jwt          `inject:""`
	I18n     *i18n.I18n         `inject:""`
	Settings *settings.Settings `inject:""`
	Server   *job.Server        `inject:""`
}

Plugin plugin

func (*Plugin) Atom

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

Atom rss.atom

func (*Plugin) Console

func (p *Plugin) Console() []cli.Command

Console console commands

func (*Plugin) Init

func (p *Plugin) Init()

Init load config

func (*Plugin) Mount

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

Mount web mount-points

func (*Plugin) Open

func (p *Plugin) Open(*inject.Graph) error

Open open beans

func (*Plugin) Sitemap

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

Sitemap sitemap.xml.gz

func (*Plugin) Workers

func (p *Plugin) Workers() map[string]job.Handler

Workers job handler

Jump to

Keyboard shortcuts

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