handler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePost

func DeletePost(ctx framework.Context) error

DeletePost handles a JSON response with a post.

func GetBoardSettings

func GetBoardSettings(ctx framework.Context) error

GetBoardSettings handles a JSON response with this board settings.

func GetHealthcheck

func GetHealthcheck(ctx framework.Context) error

GetHealthcheck handles a JSON response with a 200 OK if everything's alright.

func GetIndex

func GetIndex(ctx framework.Context) error

GetIndex handles a JSON response with every post that started a thread.

func GetPost

func GetPost(ctx framework.Context) error

GetPost handles a JSON response with a post.

func GetPostExample

func GetPostExample(ctx framework.Context) error

GetPostExample handles a JSON response with a how-to example.

func GetThread

func GetThread(ctx framework.Context) error

GetThread handles a JSON response with a number of posts defined beforehand.

func GetThreadExample

func GetThreadExample(ctx framework.Context) error

GetThreadExample handles a JSON response with a how-to example.

func SavePost

func SavePost(ctx framework.Context) error

SavePost handles a JSON response and saves the data as a post.

func UpdatePost

func UpdatePost(ctx framework.Context) error

UpdatePost handles a JSON response with a post.

Types

This section is empty.

Jump to

Keyboard shortcuts

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