handler

package
v0.0.0-...-666e6c6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorsHandler

func AuthorsHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

AuthorsHandler handles /author/list and responds with the latest authors.

func BookHandler

func BookHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

BookHandler handles /book/show and responds with a book.

func BooksHandler

func BooksHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

BooksHandler handles /book/list and responds with the latest books.

func DeleteBookAuthorHandler

func DeleteBookAuthorHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

DeleteBookAuthorHandler handles /book/author/delete and unregisters the book author.

func EpisodeHandler

func EpisodeHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

EpisodeHandler handles /episode/show and responds with an episode.

func NewAuthorHandler

func NewAuthorHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

NewAuthorHandler handles /author/new and creates an author.

func NewBookAuthorHandler

func NewBookAuthorHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

NewBookAuthorHandler handles /book/author/new and registers a book author.

func NewEpisodeHandler

func NewEpisodeHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

NewEpisodeHandler handles /episode/new and creates an episode.

func NewSectionHandler

func NewSectionHandler(
	ctx web.C, writer http.ResponseWriter, httpReq *http.Request,
	dbx *sqlx.DB, body []byte, _ model.User,
)

NewSectionHandler handles /section/new and creates a section.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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