controllers

package
v0.0.0-...-a961985 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostsController

type PostsController struct {
	PostsRepository *repositories.PostsRepository
}

func NewPostsController

func NewPostsController(postsRepository *repositories.PostsRepository) *PostsController

func (PostsController) CreatePost

func (postsController PostsController) CreatePost(w http.ResponseWriter, r *http.Request)

func (PostsController) DeletePost

func (postsController PostsController) DeletePost(w http.ResponseWriter, r *http.Request)

func (PostsController) GetPostByID

func (postsController PostsController) GetPostByID(w http.ResponseWriter, r *http.Request)

func (PostsController) GetPosts

func (postsController PostsController) GetPosts(w http.ResponseWriter, r *http.Request)

func (PostsController) UpdatePost

func (postsController PostsController) UpdatePost(w http.ResponseWriter, r *http.Request)

type UsersController

type UsersController struct {
	PostsRepository *repositories.PostsRepository
}

func NewUsersController

func NewUsersController(postsRepository *repositories.PostsRepository) *UsersController

func (UsersController) GetPosts

func (usersController UsersController) GetPosts(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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