fouru

package
v0.0.0-...-da644f5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArticleCreationHandler

func ArticleCreationHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ArticleCreationHandler is a HTTP handler for article creation

func IssueCreationHandler

func IssueCreationHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

IssueCreationHandler creates 4U issues

func IssueRetrievalHandler

func IssueRetrievalHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

IssueRetrievalHandler deals with a request for a specific 4U Issue based off the parameters provided by the user

Types

type Article

type Article struct {
	ID       int64
	ParentID int64
	Page     int64
	Name     string
	Desc     string
}

Articles are held within an issue however sometimes we might have a stand alone article

type Issue

type Issue struct {
	ID            int64
	Name          string
	Desc          string
	PublishDate   time.Time
	Picture       multipart.File
	PictureHeader *multipart.FileHeader
	ImageUrl      string
	Link          string
	TypePost      string
}

Data structures for holding the information regarding the 4U Paper

func (*Issue) ReplaceWith

func (issue *Issue) ReplaceWith(rows *sql.Rows)

ReplaceWith reads and sql.Rows object and pushes the information into an Issue object The assumption here is that the sql.Rows object is a result from a query involving the 4U Table

Jump to

Keyboard shortcuts

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