Documentation ¶
Index ¶
- type ArticleDatastore
- type ArticleSearchDatastore
- type ArticleTagDatastore
- type Datastore
- func (d *Datastore) CreateOrUpdateKeyValue(key, value string) error
- func (d *Datastore) DeleteArticleByIDs(ids []int64) error
- func (d *Datastore) DeleteArticleSearch(id int64) error
- func (d *Datastore) DeleteArticleSearches(ids []int64) error
- func (d *Datastore) DeleteArticleTag(articleTags models.ArticleTags) error
- func (d *Datastore) DeleteArticleTagsByIDs(ids []int64) error
- func (d *Datastore) DeleteNoteByIDs(ids []int64) error
- func (d *Datastore) DeleteNoteSearch(id int64) error
- func (d *Datastore) DeleteNoteSearches(ids []int64) error
- func (d *Datastore) DeleteParagraphByIDAndNoteID(id, noteID int64) error
- func (d *Datastore) DeleteParagraphByIDs(ids []int64) error
- func (d *Datastore) DeleteReferenceArticleByIDs(ids []int64) error
- func (d *Datastore) DeleteReferenceWebByIDs(ids []int64) error
- func (d *Datastore) DeleteValueByKeys(keys []string) error
- func (d *Datastore) ExistArticleByIDs(ids []int64) (bool, error)
- func (d *Datastore) ExistArticleByTitle(title string) (bool, error)
- func (d *Datastore) ExistNoteByTitle(title string) (bool, error)
- func (d *Datastore) FindArticleMetaByIDs(ids []int64) (dtos.ArticleMetas, error)
- func (d *Datastore) FindArticleMetaByIDsWithPage(ids []int64, offset, limit int) (dtos.ArticleMetas, int64, error)
- func (d *Datastore) FindArticleMetaByTagWithPage(tag string, offset, limit int) (dtos.ArticleMetas, int64, error)
- func (d *Datastore) FindArticleMetaUntaggedWithPage(offset, limit int) (dtos.ArticleMetas, int64, error)
- func (d *Datastore) FindArticleMetaWithPage(offset, limit int) (dtos.ArticleMetas, int64, error)
- func (d *Datastore) FindArticleTagCounts() ([]*models.ArticleTagCountDTO, error)
- func (d *Datastore) FindNoteByIDs(ids []int64) (models.Notes, error)
- func (d *Datastore) FindNoteByIDsWithPage(ids []int64, offset, limit int) (models.Notes, int64, error)
- func (d *Datastore) FindNoteTitles() (models.Notes, error)
- func (d *Datastore) FindNoteWithPage(offset, limit int) (models.Notes, int64, error)
- func (d *Datastore) FindParagraphByIDsAndNoteID(ids []int64, noteID int64) (models.Paragraphs, error)
- func (d *Datastore) GetArticleAllCount() (int64, error)
- func (d *Datastore) GetArticleByID(id int64) (*models.Article, error)
- func (d *Datastore) GetArticleContentByID(id int64) (string, error)
- func (d *Datastore) GetArticleMetaByID(id int64) (*dtos.ArticleMeta, error)
- func (d *Datastore) GetArticleUntaggedCount() (int64, error)
- func (d *Datastore) GetNoteByID(id int64) (*models.Note, error)
- func (d *Datastore) GetParagraphByIDAndNoteID(id, noteID int64) (*models.Paragraph, error)
- func (d *Datastore) GetValue(key string) (string, error)
- func (d *Datastore) Init() error
- func (d *Datastore) InitializeArticleSearch() error
- func (d *Datastore) InitializeNoteSearch() error
- func (d *Datastore) InsertArticleSearch(article *models.Article) error
- func (d *Datastore) InsertNoteSearch(note *models.Note) error
- func (d *Datastore) SaveArticle(article *models.Article) error
- func (d *Datastore) SaveNote(note *models.Note) error
- func (d *Datastore) SaveParagraph(paragraph *models.Paragraph) error
- func (d *Datastore) SearchArticle(keyword string) ([]int64, error)
- func (d *Datastore) SearchNote(keyword string) ([]int64, error)
- func (d *Datastore) UpdateArticleSearch(article *models.Article) error
- func (d *Datastore) UpdateArticleTag(tag, newTag string) error
- func (d *Datastore) UpdateNoteSearch(note *models.Note) error
- type MiscDatastore
- type NoteDatastore
- type NoteSearchDatastore
- type ParagraphDatastore
- type ReferenceArticleDatastore
- type ReferenceWebDatastore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleDatastore ¶
type ArticleDatastore interface { SaveArticle(article *models.Article) error FindArticleMetaWithPage(offset, limit int) (dtos.ArticleMetas, int64, error) FindArticleMetaByIDsWithPage(ids []int64, offset, limit int) (dtos.ArticleMetas, int64, error) FindArticleMetaByIDs(ids []int64) (dtos.ArticleMetas, error) GetArticleMetaByID(id int64) (*dtos.ArticleMeta, error) GetArticleByID(id int64) (*models.Article, error) FindArticleMetaByTagWithPage(tag string, offset, limit int) (dtos.ArticleMetas, int64, error) FindArticleMetaUntaggedWithPage(offset, limit int) (dtos.ArticleMetas, int64, error) GetArticleContentByID(id int64) (string, error) GetArticleUntaggedCount() (int64, error) GetArticleAllCount() (int64, error) ExistArticleByTitle(title string) (bool, error) ExistArticleByIDs(ids []int64) (bool, error) DeleteArticleByIDs(ids []int64) error }
type ArticleSearchDatastore ¶
type ArticleTagDatastore ¶
type ArticleTagDatastore interface { UpdateArticleTag(tag, newTag string) error FindArticleTagCounts() ([]*models.ArticleTagCountDTO, error) DeleteArticleTag(articleTags models.ArticleTags) error DeleteArticleTagsByIDs(ids []int64) error }
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
func (*Datastore) CreateOrUpdateKeyValue ¶
func (*Datastore) DeleteArticleByIDs ¶
func (*Datastore) DeleteArticleSearch ¶
func (*Datastore) DeleteArticleSearches ¶
func (*Datastore) DeleteArticleTag ¶
func (d *Datastore) DeleteArticleTag(articleTags models.ArticleTags) error
func (*Datastore) DeleteArticleTagsByIDs ¶
func (*Datastore) DeleteNoteByIDs ¶
func (*Datastore) DeleteNoteSearch ¶
func (*Datastore) DeleteNoteSearches ¶
func (*Datastore) DeleteParagraphByIDAndNoteID ¶
func (*Datastore) DeleteParagraphByIDs ¶
func (*Datastore) DeleteReferenceArticleByIDs ¶
func (*Datastore) DeleteReferenceWebByIDs ¶
func (*Datastore) DeleteValueByKeys ¶
func (*Datastore) ExistArticleByIDs ¶
func (*Datastore) ExistArticleByTitle ¶
func (*Datastore) ExistNoteByTitle ¶
func (*Datastore) FindArticleMetaByIDs ¶
func (d *Datastore) FindArticleMetaByIDs(ids []int64) (dtos.ArticleMetas, error)
func (*Datastore) FindArticleMetaByIDsWithPage ¶
func (*Datastore) FindArticleMetaByTagWithPage ¶
func (*Datastore) FindArticleMetaUntaggedWithPage ¶
func (*Datastore) FindArticleMetaWithPage ¶
func (*Datastore) FindArticleTagCounts ¶
func (d *Datastore) FindArticleTagCounts() ([]*models.ArticleTagCountDTO, error)
func (*Datastore) FindNoteByIDs ¶
func (*Datastore) FindNoteByIDsWithPage ¶
func (*Datastore) FindNoteWithPage ¶
func (*Datastore) FindParagraphByIDsAndNoteID ¶
func (*Datastore) GetArticleAllCount ¶
func (*Datastore) GetArticleByID ¶
func (*Datastore) GetArticleContentByID ¶
func (*Datastore) GetArticleMetaByID ¶
func (d *Datastore) GetArticleMetaByID(id int64) (*dtos.ArticleMeta, error)
func (*Datastore) GetArticleUntaggedCount ¶
func (*Datastore) GetParagraphByIDAndNoteID ¶
func (*Datastore) InitializeArticleSearch ¶
func (*Datastore) InitializeNoteSearch ¶
func (*Datastore) InsertArticleSearch ¶
func (*Datastore) SaveParagraph ¶
func (*Datastore) SearchArticle ¶
func (*Datastore) UpdateArticleSearch ¶
func (*Datastore) UpdateArticleTag ¶
type MiscDatastore ¶
type NoteDatastore ¶
type NoteDatastore interface { SaveNote(note *models.Note) error FindNoteWithPage(offset, limit int) (models.Notes, int64, error) FindNoteByIDsWithPage(ids []int64, offset, limit int) (models.Notes, int64, error) FindNoteByIDs(ids []int64) (models.Notes, error) FindNoteTitles() (models.Notes, error) GetNoteByID(id int64) (*models.Note, error) ExistNoteByTitle(title string) (bool, error) DeleteNoteByIDs(ids []int64) error }
type NoteSearchDatastore ¶
type ParagraphDatastore ¶
type ParagraphDatastore interface { SaveParagraph(paragraph *models.Paragraph) error GetParagraphByIDAndNoteID(id, noteID int64) (*models.Paragraph, error) FindParagraphByIDsAndNoteID(ids []int64, noteID int64) (models.Paragraphs, error) DeleteParagraphByIDs(ids []int64) error DeleteParagraphByIDAndNoteID(id, noteID int64) error }
type ReferenceWebDatastore ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.