Documentation ¶
Index ¶
- type Model
- func (m Model) CreateNote(ctx context.Context, note entity.Note) (int64, error)
- func (m Model) CreateTag(ctx context.Context, tag entity.Tag) (int64, error)
- func (m Model) CreateUser(ctx context.Context, usr entity.User) (int, error)
- func (m Model) DeleteTag(ctx context.Context, tag string, userID int) (int64, error)
- func (m Model) DeleteTagInNote(ctx context.Context, tag string, userID int) (int64, error)
- func (m Model) GetByNik(ctx context.Context, nik string) (entity.User, error)
- func (m Model) GetCategories(ctx context.Context) ([]string, error)
- func (m Model) GetNoteByID(ctx context.Context, id string, userID int) (entity.Note, error)
- func (m Model) GetNotes(ctx context.Context, userID int) ([]entity.Note, error)
- func (m Model) GetNotesByIDs(ctx context.Context, ids []string, userID int) ([]entity.Note, error)
- func (m Model) GetTags(ctx context.Context, userID int) ([]entity.Tag, error)
- func (m Model) GetTagsByTag(ctx context.Context, tag []string, userID int) ([]entity.Tag, error)
- func (m Model) UpdateNote(ctx context.Context, note entity.Note) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (Model) CreateNote ¶
func (Model) CreateUser ¶
func (Model) DeleteTagInNote ¶
func (Model) GetNoteByID ¶
func (Model) GetNotesByIDs ¶
func (Model) GetTagsByTag ¶
Click to show internal directories.
Click to hide internal directories.