bookmarks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: GPL-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 Bookmark

type Bookmark struct {
	Id         int  `json:"id"`
	Order      int  `json:"order"`
	FolderID   *int `json:"folder_id"`
	ServiceID  *int `json:"service_id"`
	ResourceID *int `json:"resource_id"`
	UserID     *int `json:"user_id"`
}

func FromDBType

func FromDBType(dbBookmark *db.Bookmark) *Bookmark

func FromDBTypeArray

func FromDBTypeArray(dbBookmarks []*db.Bookmark) []*Bookmark

type Bookmarks

type Bookmarks struct {
	Bookmarks []*Bookmark `json:"bookmarks"`
}

type Manager

type Manager struct {
	DbClient *db.Manager
}

func New

func New(dbManager *db.Manager) *Manager

func (*Manager) DeleteByID

func (m *Manager) DeleteByID(w http.ResponseWriter, r *http.Request)

func (*Manager) Get

func (m *Manager) Get(w http.ResponseWriter, r *http.Request)

func (*Manager) GetByID

func (m *Manager) GetByID(w http.ResponseWriter, r *http.Request)

func (*Manager) Submit

func (m *Manager) Submit(w http.ResponseWriter, r *http.Request)

func (*Manager) Update

func (m *Manager) Update(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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