bookmark

package
v0.0.0-...-b5a72d0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountByUserId

func CountByUserId(userId string, session *db.Session) (int, error)

func GenerateBookmarks

func GenerateBookmarks(bookmarkCount uint, userId string, session *db.Session) error

Types

type Bookmark

type Bookmark struct {
	Id     bson.ObjectId `json:"id" bson:"_id,omitempty"`
	UserId bson.ObjectId `json:"user" bson:"user,omitempty"`
	Url    string        `json:"url" bson:"url"`
}

func FindOneById

func FindOneById(bookmarkId string, userId string, session *db.Session) (*Bookmark, error)

func (*Bookmark) Create

func (bookmark *Bookmark) Create(session *db.Session) error

func (*Bookmark) Delete

func (bookmark *Bookmark) Delete(session *db.Session) error

Jump to

Keyboard shortcuts

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