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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.