Documentation ¶
Index ¶
- type Config
- type Note
- type Store
- func (s *Store) Delete(id string) error
- func (s *Store) DeleteByTags(tags []string) error
- func (s *Store) Get(id string) (interface{}, error)
- func (s *Store) GetAll() (interface{}, error)
- func (s *Store) GetByTags(tags []string) (interface{}, error)
- func (s *Store) GetTags() ([]string, error)
- func (s *Store) Insert(item interface{}) error
- func (s *Store) Search(searchWords []string, searchLocations []string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Note ¶
type Note struct { ID primitive.ObjectID `bson:"_id,omitempty"` Tags []string `bson:"tags"` Command string `bson:"command"` Description string `bson:"description"` }
Note struct for storing notes in MongoDB
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store struct for storing MongoDB client/collection
func (*Store) DeleteByTags ¶
DeleteByTags deletes notes by tags from MongoDB
Click to show internal directories.
Click to hide internal directories.