Documentation ¶
Overview ¶
Package pipetdata impliments meat of pipet, data access functions - which are being called out from CLI
Index ¶
- Variables
- type DataStore
- func (d *DataStore) Delete(id string) error
- func (d *DataStore) Exist(filename string) bool
- func (d *DataStore) Fullpath(id string) string
- func (d *DataStore) List() (sns []*Snippet, err error)
- func (d *DataStore) New(title string, tags ...string) (fn string, err error)
- func (d *DataStore) Read(id string) (sn *Snippet, err error)
- type Snippet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EBadData error bad data on disk EBadData = fmt.Errorf("bad data") )
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
DataStore is the main structure for snippet access
func NewDataStore ¶
NewDataStore creates a new datastore abastraction for storing notes. disk path is passed as documentDir
type Snippet ¶
type Snippet struct { Meta metadata Data string }
Snippet is the data type holding the actual snippet
Click to show internal directories.
Click to hide internal directories.