Documentation ¶
Index ¶
- func WrapRequest(next func(*Request) (interface{}, error)) papernet.HandlerFunc
- type ArxivHandler
- type ImportHandler
- type PaperHandler
- func (h *PaperHandler) Delete(req *Request) (interface{}, error)
- func (h *PaperHandler) Get(req *Request) (interface{}, error)
- func (h *PaperHandler) Insert(req *Request) (interface{}, error)
- func (h *PaperHandler) List(req *Request) (interface{}, error)
- func (h *PaperHandler) Routes() []papernet.EndPoint
- func (h *PaperHandler) Update(req *Request) (interface{}, error)
- type PaperOwnershipRegistry
- type Request
- type TagHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapRequest ¶
func WrapRequest(next func(*Request) (interface{}, error)) papernet.HandlerFunc
Types ¶
type ArxivHandler ¶
type ArxivHandler struct { Store papernet.PaperStore Index papernet.PaperIndex }
func (*ArxivHandler) Routes ¶
func (h *ArxivHandler) Routes() []papernet.EndPoint
func (*ArxivHandler) Search ¶
func (h *ArxivHandler) Search(req *Request) (interface{}, error)
type ImportHandler ¶
func (*ImportHandler) Import ¶
func (h *ImportHandler) Import(req *Request) (interface{}, error)
func (*ImportHandler) ImportChromeBookmarks ¶
func (h *ImportHandler) ImportChromeBookmarks(req *Request) (interface{}, error)
func (*ImportHandler) Routes ¶
func (h *ImportHandler) Routes() []papernet.EndPoint
type PaperHandler ¶
type PaperHandler struct { Store papernet.PaperStore Index papernet.PaperIndex TagIndex papernet.TagIndex PaperOwnershipRegistry PaperOwnershipRegistry }
func (*PaperHandler) Delete ¶
func (h *PaperHandler) Delete(req *Request) (interface{}, error)
func (*PaperHandler) Get ¶
func (h *PaperHandler) Get(req *Request) (interface{}, error)
func (*PaperHandler) Insert ¶
func (h *PaperHandler) Insert(req *Request) (interface{}, error)
func (*PaperHandler) List ¶
func (h *PaperHandler) List(req *Request) (interface{}, error)
func (*PaperHandler) Routes ¶
func (h *PaperHandler) Routes() []papernet.EndPoint
func (*PaperHandler) Update ¶
func (h *PaperHandler) Update(req *Request) (interface{}, error)
type PaperOwnershipRegistry ¶
type TagHandler ¶
func (*TagHandler) List ¶
func (h *TagHandler) List(req *Request) (interface{}, error)
func (*TagHandler) Routes ¶
func (h *TagHandler) Routes() []papernet.EndPoint
Click to show internal directories.
Click to hide internal directories.