controllers

package
v0.0.0-...-59a70be Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package controllers translates HTTP requests into PostService calls. The service is framework-agnostic; only this file knows about net/http.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostController

type PostController struct {
	Service *services.PostService
}

func NewPostController

func NewPostController(conn *database.Connection) *PostController

func (*PostController) Destroy

func (c *PostController) Destroy(w http.ResponseWriter, r *http.Request)

func (*PostController) Index

func (c *PostController) Index(w http.ResponseWriter, r *http.Request)

func (*PostController) Show

func (*PostController) Store

func (c *PostController) Store(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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