drvsectionstore

package
v0.0.0-...-20679a4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

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.

Jump to

Keyboard shortcuts

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