handlers

package
v0.0.0-...-e599a1d Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HASH_COST = 8
)

Variables

This section is empty.

Functions

func DeletePostHandler

func DeletePostHandler(s server.Server) http.HandlerFunc

func GetPostByIdHandler

func GetPostByIdHandler(s server.Server) http.HandlerFunc

func HomeHandler

func HomeHandler(s server.Server) http.HandlerFunc

func InsertPostHandler

func InsertPostHandler(s server.Server) http.HandlerFunc

func ListPostHandler

func ListPostHandler(s server.Server) http.HandlerFunc

func LoginHandler

func LoginHandler(s server.Server) http.HandlerFunc

func MeHandler

func MeHandler(s server.Server) http.HandlerFunc

func SignUpHandler

func SignUpHandler(s server.Server) http.HandlerFunc

func UpdatePostHandler

func UpdatePostHandler(s server.Server) http.HandlerFunc

Types

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type PostResponse

type PostResponse struct {
	Id          string `json:"id"`
	PostContent string `json:"post_content"`
}

type PostUpdateResponse

type PostUpdateResponse struct {
	Message string `json:"message"`
}

type SignUpLoginRequest

type SignUpLoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type SignUpResponse

type SignUpResponse struct {
	Id    string `json:"id"`
	Email string `json:"email"`
}

type UpsertPostRequest

type UpsertPostRequest struct {
	PostContent string `json:"post_content"`
}

Jump to

Keyboard shortcuts

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