manuscript

package
v0.0.0-...-1448fe8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID       int
	Authors  string
	Year     int
	Title    string
	Journal  string
	Volume   int
	Pages    string
	Doi      string
	Abstract string
}

Article is the basic structure for holding research documents

type Model

type Model struct {
	DB *gorm.DB
}

Model handles all the DB related stuff

func (*Model) AutoMigrate

func (m *Model) AutoMigrate()

AutoMigrate puts the Manuscript struct into the database if it is not alreday there

func (*Model) Get

func (m *Model) Get(id int) (*Article, error)

Get returns the article with the given id

func (*Model) List

func (m *Model) List() ([]Article, error)

List returns all the entries in the database

Jump to

Keyboard shortcuts

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