reading

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	ID uint `orm:"column(id)" json:"id"`

	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"`
	UpdatedAt   time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt   time.Time `orm:"auto_now_add" json:"createdAt"`
}

Book book

func (*Book) TableName

func (*Book) TableName() string

TableName table name

type Note

type Note struct {
	ID        uint `orm:"column(id)" json:"id"`
	Type      string
	Body      string
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`

	User *nut.User `orm:"rel(fk)"`
	Book *Book     `orm:"rel(fk)"`
}

Note note

func (*Note) TableName

func (*Note) TableName() string

TableName table name

type Plugin

type Plugin struct {
	nut.Controller
}

Plugin controller

func (*Plugin) GetHome

func (p *Plugin) GetHome()

GetHome home @router / [get]

Jump to

Keyboard shortcuts

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