bookmarks

package
v0.0.0-...-e94906c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectRoutes

func InjectRoutes(r *mux.Router)

InjectRoutes adds Tag domain routes to the main router

Types

type Bookmark

type Bookmark struct {
	core.BaseModel
	URL string `json:"url" bson:"url"`
}

Bookmark represents a bookmark url

func (*Bookmark) Save

func (b *Bookmark) Save() error

Save saves a bookmark into database, either update it or create new one

type BookmarksManager

type BookmarksManager struct{}

func (*BookmarksManager) Find

func (m *BookmarksManager) Find(queryParams bson.M) ([]Bookmark, error)

Find returns a list of all bookmarks

func (*BookmarksManager) FindOne

func (m *BookmarksManager) FindOne(queryParams bson.M) (Bookmark, error)

Jump to

Keyboard shortcuts

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