handlers

package
v0.0.0-...-602ca48 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HASH_COST int = 8
)

Variables

This section is empty.

Functions

func DeletePostHandler

func DeletePostHandler(s server.Server) http.HandlerFunc

func GetPostById

func GetPostById(s server.Server) http.HandlerFunc

func HomeHandler

func HomeHandler(s server.Server) http.HandlerFunc

func InsertPostHandler

func InsertPostHandler(s server.Server) http.HandlerFunc

func ListPost

func ListPost(s server.Server) http.HandlerFunc

func LogInHandler

func LogInHandler(s server.Server) http.HandlerFunc

func MeHandler

func MeHandler(s server.Server) http.HandlerFunc

func SingUpHandler

func SingUpHandler(s server.Server) http.HandlerFunc

func UpdatePostHandler

func UpdatePostHandler(s server.Server) http.HandlerFunc

Types

type HomeResponse

type HomeResponse struct {
	Message string `json:"message"`
	Status  bool   `json:"status"`
}

type LogInResponse

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

type PostRUpdateResponse

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

type PostResponse

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

type SingUpLoginRequest

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

type SingUpResponse

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

type UpsertPostRequest

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

Jump to

Keyboard shortcuts

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