Documentation
¶
Overview ¶
Package search 基于 meilisearch 提供搜索功能
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Handler ¶
type Handler interface {
Handle(c echo.Context) error
}
Handler TODO: 想个办法挪到 web 里面去.
type NoopClient ¶
type NoopClient struct { }
func (NoopClient) Close ¶ added in v0.29.10
func (n NoopClient) Close()
func (NoopClient) Handle ¶
func (n NoopClient) Handle(c echo.Context) error
func (NoopClient) OnSubjectDelete ¶
func (NoopClient) OnSubjectUpdate ¶
type ReponseSubject ¶ added in v0.32.8
type ReponseSubject struct { Date string `json:"date"` Image string `json:"image"` Type uint8 `json:"type"` Summary string `json:"summary"` Name string `json:"name"` NameCN string `json:"name_cn"` Tags []res.SubjectTag `json:"tags"` Score float64 `json:"score"` ID model.SubjectID `json:"id"` Rank uint32 `json:"rank"` NSFW bool `json:"nsfw"` }
Click to show internal directories.
Click to hide internal directories.