Documentation ¶
Index ¶
- type DrvSectionstore
- func (ss *DrvSectionstore) Create(nid string, s *secstore.WritableSection) (*secstore.Section, error)
- func (ss *DrvSectionstore) Delete(nid, sid string) error
- func (ss *DrvSectionstore) Get(nid, sid string) (*secstore.Section, error)
- func (ss *DrvSectionstore) GetAll(nid string) ([]*secstore.Section, error)
- func (ss *DrvSectionstore) Update(nid, sid string, s *secstore.WritableSection) (*secstore.Section, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrvSectionstore ¶
type DrvSectionstore struct {
// contains filtered or unexported fields
}
DrvSectionstore is the sectionstore implementation using google drive api.
func New ¶
func New(c *http.Client) (*DrvSectionstore, error)
New creates a new instance of google drive sectionstore.
func (*DrvSectionstore) Create ¶
func (ss *DrvSectionstore) Create(nid string, s *secstore.WritableSection) (*secstore.Section, error)
Create adds a new section in the note and stores the data on google drive.
func (*DrvSectionstore) Delete ¶
func (ss *DrvSectionstore) Delete(nid, sid string) error
Delete removes the section from note.
func (*DrvSectionstore) Get ¶
func (ss *DrvSectionstore) Get(nid, sid string) (*secstore.Section, error)
Get returns a single section from the note.
func (*DrvSectionstore) GetAll ¶
func (ss *DrvSectionstore) GetAll(nid string) ([]*secstore.Section, error)
GetAll fetches all sections from the note.
func (*DrvSectionstore) Update ¶
func (ss *DrvSectionstore) Update(nid, sid string, s *secstore.WritableSection) (*secstore.Section, error)
Update modifies the section and saves it back in the note.
Click to show internal directories.
Click to hide internal directories.