Documentation ¶
Index ¶
- type Scope
- func (s Scope) Add(ctx domain.RequestContext, pin pin.Pin) (err error)
- func (s Scope) DeletePin(ctx domain.RequestContext, id string) (rows int64, err error)
- func (s Scope) DeletePinnedDocument(ctx domain.RequestContext, documentID string) (rows int64, err error)
- func (s Scope) DeletePinnedSpace(ctx domain.RequestContext, spaceID string) (rows int64, err error)
- func (s Scope) GetPin(ctx domain.RequestContext, id string) (pin pin.Pin, err error)
- func (s Scope) GetUserPins(ctx domain.RequestContext, userID string) (pins []pin.Pin, err error)
- func (s Scope) UpdatePin(ctx domain.RequestContext, pin pin.Pin) (err error)
- func (s Scope) 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 Scope ¶
Scope provides data access to MySQL.
func (Scope) DeletePinnedDocument ¶
func (s Scope) DeletePinnedDocument(ctx domain.RequestContext, documentID string) (rows int64, err error)
DeletePinnedDocument removes any pins for specified document.
func (Scope) DeletePinnedSpace ¶
DeletePinnedSpace removes any pins for specified space.
func (Scope) GetUserPins ¶
GetUserPins returns pinned items for specified user.
func (Scope) UpdatePinSequence ¶
UpdatePinSequence updates existing pinned item sequence number
Click to show internal directories.
Click to hide internal directories.