handlers

package
v0.0.0-...-80fd6f0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlog

func CreateBlog(db *gorm.DB) http.HandlerFunc

func GetBlog

func GetBlog(db *gorm.DB) http.HandlerFunc

func GetListBlog

func GetListBlog(db *gorm.DB) http.HandlerFunc

func GetUser

func GetUser(r *http.Request, db *gorm.DB) (*models.ApiUser, error)

utils

func GetUserListBlogs

func GetUserListBlogs(db *gorm.DB) http.HandlerFunc

func Home

func Home(w http.ResponseWriter, r *http.Request)

func UpdateBlog

func UpdateBlog(db *gorm.DB) http.HandlerFunc

Types

type CreateBlogStruct

type CreateBlogStruct struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

serializer structs

Jump to

Keyboard shortcuts

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