Documentation
¶
Index ¶
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Create(ctx context.Context, req note.CreateNoteRequest) (*note.Note, error)
- func (s *Storage) Delete(ctx context.Context, id int64) error
- func (s *Storage) Get(ctx context.Context, id int64) (*note.Note, error)
- func (s *Storage) List(ctx context.Context, req note.ListNotesRequest) (*note.ListNotesResponse, error)
- func (s *Storage) Update(ctx context.Context, id int64, req note.UpdateNoteRequest) (*note.Note, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements the note.Storage interface using SQLite
func NewStorage ¶
NewStorage creates a new SQLite storage instance
func (*Storage) List ¶
func (s *Storage) List(ctx context.Context, req note.ListNotesRequest) (*note.ListNotesResponse, error)
List lists notes with pagination and filtering
Click to show internal directories.
Click to hide internal directories.