controllers

package
v0.0.0-...-cc686c7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func CreateArticle

func CreateArticle(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func CreateComment

func CreateComment(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func CreateUser

func CreateUser(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func DownloadFile

func DownloadFile(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func DownloadPostFile

func DownloadPostFile(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func FollowUserByID

func FollowUserByID(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetAllArticles

func GetAllArticles(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetAllComments

func GetAllComments(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetAllTag

func GetAllTag(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetArticleByID

func GetArticleByID(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetArticlesByTag

func GetArticlesByTag(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetArticlesByUserID

func GetArticlesByUserID(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetConcernArticles

func GetConcernArticles(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetUserById

func GetUserById(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetUserFollower

func GetUserFollower(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func GetUserFollowing

func GetUserFollowing(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func UnfollowUserByID

func UnfollowUserByID(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func UpdateArticleByID

func UpdateArticleByID(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func UpdateCommnetById

func UpdateCommnetById(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func UpdateIcon

func UpdateIcon(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

func UpdateUserByID

func UpdateUserByID(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error

Types

type FileInfo

type FileInfo struct {
	Filename string `json:"imgpath"`
}

Jump to

Keyboard shortcuts

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