Documentation
¶
Index ¶
Constants ¶
View Source
const HtmlAnalyzer = "html"
View Source
const (
QueryDialectBleve = "bleve"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BleveDocument ¶
type BleveDocument struct {
ID string `json:"id"`
OID int64 `json:"oid"`
Name string `json:"name"`
ParentEntryID int64 `json:"parent_entry_id"`
Source string `json:"source"`
KeyWords []string `json:"keywords,omitempty"`
Content string `json:"content,omitempty"`
Summary string `json:"summary,omitempty"`
CreatedAt time.Time `json:"created_at"`
ChangedAt time.Time `json:"changed_at"`
}
func (*BleveDocument) BleveType ¶
func (d *BleveDocument) BleveType() string
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewDocumentIndexer ¶
type Manager ¶
type Manager interface {
ListDocuments(ctx context.Context, parentId int64) ([]*types.Document, error)
QueryDocuments(ctx context.Context, query string) ([]*types.Document, error)
SaveDocument(ctx context.Context, doc *types.Document) error
GetDocument(ctx context.Context, id int64) (*types.Document, error)
GetDocumentByEntryId(ctx context.Context, oid int64) (*types.Document, error)
DeleteDocument(ctx context.Context, id int64) error
EnableGroupFeed(ctx context.Context, id int64, feedID string) error
DisableGroupFeed(ctx context.Context, id int64) error
GetDocsByFeedId(ctx context.Context, feedID string, count int) (*types.FeedResult, error)
CreateFridayAccount(ctx context.Context, account *types.FridayAccount) error
}
Click to show internal directories.
Click to hide internal directories.