reading

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v0.0.2

func Parse(r io.Reader) (string, error)

Parse parse body from html file

Types

type Body added in v0.0.2

type Body struct {
	Content string `xml:",innerxml"`
}

Body model

type Book added in v0.0.2

type Book struct {
	web.Model

	Name      string `sql:"not null;unique_index" json:"name"`
	Title     string `sql:"not null;index" json:"title"`
	Creator   string `sql:"not null;index" json:"creator"`
	Subject   string `sql:"not null;index" json:"subject"`
	Publisher string `sql:"not null;index" json:"publisher"`
	Version   string `sql:"not null;index" json:"version"`
	Home      string `sql:"not null;index" json:"home"`
}

Book book model

func (Book) TableName added in v0.0.2

func (Book) TableName() string

TableName table name

type DictFm added in v0.0.2

type DictFm struct {
	Keyword string `form:"keyword" binding:"required"`
}

DictFm form for notice

type Engine

type Engine struct {
	Db     *gorm.DB        `inject:""`
	Jwt    *platform.Jwt   `inject:""`
	Logger *logging.Logger `inject:""`
	Cache  *web.Cache      `inject:""`
}

Engine Reading engine

func (*Engine) Map

func (p *Engine) Map(*inject.Graph) error

Map mapping objects

func (*Engine) Migrate

func (p *Engine) Migrate(db *gorm.DB)

Migrate db:migrate

func (*Engine) Mount

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

Mount mount router

func (*Engine) Seed

func (p *Engine) Seed()

Seed db:seed

func (*Engine) Shell

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

Shell commands

func (*Engine) Worker

func (p *Engine) Worker()

Worker worker

type HTML added in v0.0.2

type HTML struct {
	Body Body `xml:"body"`
}

HTML model

type Note

type Note struct {
	web.Model

	UserID uint          `gorm:"not null" json:"user_id"`
	User   platform.User `json:"-"`

	Title string `gorm:"not null;index" json:"title"`
	Body  string `gorm:"not null;type:text" json:"body"`
	Share bool   `gorm:"not null" json:"share"`
}

Note note model

func (Note) TableName

func (Note) TableName() string

TableName table's name of Note

type NoteFm

type NoteFm struct {
	ID    uint   `form:"id"`
	Title string `form:"title" binding:"required"`
	Body  string `form:"body" binding:"required"`
}

NoteFm note form model

Jump to

Keyboard shortcuts

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