controller

package
v0.0.0-...-2456482 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouxinolController

func NewRouxinolController(router *mux.Router, postRepo post.Repository, userRepo user.Repository)

NewRouxinolController provides a controller

Types

type RouxinolController

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

RouxinolController encapsulates rouxinol's repositories

func (*RouxinolController) GetPosts

func (rx *RouxinolController) GetPosts(w http.ResponseWriter, r *http.Request)

GetPosts retrieves all posts by user id

func (*RouxinolController) NewPost

func (rx *RouxinolController) NewPost(w http.ResponseWriter, r *http.Request)

NewPost creates a new post

Jump to

Keyboard shortcuts

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