Documentation ¶
Index ¶
- type Handler
- type Store
- func (s Store) Add(ctx domain.RequestContext, pin pin.Pin) (err error)
- func (s Store) DeletePin(ctx domain.RequestContext, id string) (rows int64, err error)
- func (s Store) DeletePinnedDocument(ctx domain.RequestContext, documentID string) (rows int64, err error)
- func (s Store) DeletePinnedSpace(ctx domain.RequestContext, spaceID string) (rows int64, err error)
- func (s Store) GetPin(ctx domain.RequestContext, id string) (pin pin.Pin, err error)
- func (s Store) GetUserPins(ctx domain.RequestContext, userID string) (pins []pin.Pin, err error)
- func (s Store) UpdatePin(ctx domain.RequestContext, pin pin.Pin) (err error)
- func (s Store) UpdatePinSequence(ctx domain.RequestContext, pinID string, sequence int) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler contains the runtime information such as logging and database.
func (*Handler) Add ¶
func (h *Handler) Add(w http.ResponseWriter, r *http.Request)
Add saves pinned item.
func (*Handler) DeleteUserPin ¶
func (h *Handler) DeleteUserPin(w http.ResponseWriter, r *http.Request)
DeleteUserPin removes saved user pin.
func (*Handler) GetUserPins ¶
func (h *Handler) GetUserPins(w http.ResponseWriter, r *http.Request)
GetUserPins returns users' pins.
func (*Handler) UpdatePinSequence ¶
func (h *Handler) UpdatePinSequence(w http.ResponseWriter, r *http.Request)
UpdatePinSequence records order of pinned items.
type Store ¶ added in v1.71.0
Store provides data access to user permission information.
func (Store) DeletePinnedDocument ¶ added in v1.71.0
func (s Store) DeletePinnedDocument(ctx domain.RequestContext, documentID string) (rows int64, err error)
DeletePinnedDocument removes any pins for specified document.
func (Store) DeletePinnedSpace ¶ added in v1.71.0
DeletePinnedSpace removes any pins for specified space.
func (Store) GetUserPins ¶ added in v1.71.0
GetUserPins returns pinned items for specified user.
func (Store) UpdatePinSequence ¶ added in v1.71.0
UpdatePinSequence updates existing pinned item sequence number
Click to show internal directories.
Click to hide internal directories.