pin

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	Runtime *env.Runtime
}

Scope provides data access to MySQL.

func (Scope) Add

func (s Scope) Add(ctx domain.RequestContext, pin pin.Pin) (err error)

Add saves pinned item.

func (Scope) DeletePin

func (s Scope) DeletePin(ctx domain.RequestContext, id string) (rows int64, err error)

DeletePin removes folder from the store.

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

func (s Scope) DeletePinnedSpace(ctx domain.RequestContext, spaceID string) (rows int64, err error)

DeletePinnedSpace removes any pins for specified space.

func (Scope) GetPin

func (s Scope) GetPin(ctx domain.RequestContext, id string) (pin pin.Pin, err error)

GetPin returns requested pinned item.

func (Scope) GetUserPins

func (s Scope) GetUserPins(ctx domain.RequestContext, userID string) (pins []pin.Pin, err error)

GetUserPins returns pinned items for specified user.

func (Scope) UpdatePin

func (s Scope) UpdatePin(ctx domain.RequestContext, pin pin.Pin) (err error)

UpdatePin updates existing pinned item.

func (Scope) UpdatePinSequence

func (s Scope) UpdatePinSequence(ctx domain.RequestContext, pinID string, sequence int) (err error)

UpdatePinSequence updates existing pinned item sequence number

Jump to

Keyboard shortcuts

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