Documentation ¶
Index ¶
- func BindImage(images *store.Images, paramName string) func(http.Handler) http.Handler
- func BindPinl(pinls *store.Pinls, paramName string) func(http.Handler) http.Handler
- func BindShare(shares *store.Shares, paramName string) func(http.Handler) http.Handler
- func BindShareBySlug(shares *store.Shares, paramName string) func(http.Handler) http.Handler
- func BindTag(tags *store.Tags, paramName string) func(http.Handler) http.Handler
- func BindUserByLogin(users *store.Users, paramName string) func(http.Handler) http.Handler
- func ImageHandler() http.Handler
- func ImageUpload(ctx context.Context, r *http.Request, images *store.Images, ...) (image *model.Image, code int, outerr error)
- func PinlCreateHandler(txer database.Txer, pinls *store.Pinls, tags *store.Tags, ...) http.Handler
- func PinlDeleteHandler(txer database.Txer, pinls *store.Pinls, tags *store.Tags, ...) http.Handler
- func PinlHandler(taggables *store.Taggables) http.Handler
- func PinlListHandler(pinls *store.Pinls, tags *store.Tags, taggables *store.Taggables) http.Handler
- func PinlUpdateHandler(txer database.Txer, pinls *store.Pinls, tags *store.Tags, ...) http.Handler
- func TagCreateHandler(txer database.Txer, tags *store.Tags) http.Handler
- func TagDeleteHandler(txer database.Txer, tags *store.Tags, taggables *store.Taggables) http.Handler
- func TagHandler() http.Handler
- func TagListHandler(tags *store.Tags) http.Handler
- func TagUpdateHandler(txer database.Txer, tags *store.Tags) http.Handler
- type PinlBody
- type TagBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindShareBySlug ¶
func BindUserByLogin ¶
func ImageHandler ¶
func ImageUpload ¶
func PinlCreateHandler ¶
func PinlCreateHandler(txer database.Txer, pinls *store.Pinls, tags *store.Tags, taggables *store.Taggables, queue *queue.Manager) http.Handler
PinlCreateHandler creates pinl from request.
func PinlDeleteHandler ¶
func PinlDeleteHandler(txer database.Txer, pinls *store.Pinls, tags *store.Tags, taggables *store.Taggables, queue *queue.Manager) http.Handler
PinlDeleteHandler deletes pinl if found.
func PinlHandler ¶
PinlHandler shows pinl by id.
func PinlListHandler ¶
PinlListHandler handles pinl listing request.
func PinlUpdateHandler ¶
func PinlUpdateHandler(txer database.Txer, pinls *store.Pinls, tags *store.Tags, taggables *store.Taggables, queue *queue.Manager) http.Handler
PinlUpdateHandler updates fields of the found pinl.
func TagDeleteHandler ¶
func TagHandler ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.