http

package
v0.0.0-...-fc786eb Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb() *gorp.DbMap

InitDb CREATE A DATABASE

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is the APP

func NewApp

func NewApp(db *gorp.DbMap) *App

NewApp is the NEW APP

func (*App) ArticlePost

func (a *App) ArticlePost(c *gin.Context)

ArticlePost posts and article

func (*App) ArticlesDetail

func (a *App) ArticlesDetail(c *gin.Context)

ArticlesDetail shows the article details

func (*App) ArticlesList

func (a *App) ArticlesList(c *gin.Context)

ArticlesList lists the articles

type Article

type Article struct {
	Id      int64 `db:"article_id"`
	Created int64
	Title   string
	Content string
}

Jump to

Keyboard shortcuts

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