Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotesService ¶
type NotesService struct {
// contains filtered or unexported fields
}
NotesService implements Service with store
func NewNotesService ¶
func NewNotesService(st store.Store, lg *zap.Logger) NotesService
NewNotesService creates a new instance of NotesService
func (NotesService) Create ¶
func (n NotesService) Create(id string, data db.Data) error
Create creates a new record in DB, handling translations
func (NotesService) Delete ¶
func (n NotesService) Delete(id string) error
Delete deletes the data corresponding to id in store handing translations and deleting nothing
func (NotesService) Exists ¶
func (n NotesService) Exists(id string) (bool, error)
Exists gets data with id from DB, checks it against zero values and returns true if the record is non-zero
Click to show internal directories.
Click to hide internal directories.