refactor: SearchEngine interface, remove nilable qdrantStore
This commit is contained in:
1 parent
98aa7dd68c
commit
ffdc023065
5 files changed
+134
-118
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
type entry struct {
|
||||
ID int64 `json:"_id"`
|
||||
PublicID int64 `json:"public_id"`
|
||||
Version int `json:"version"`
|
||||
Note string `json:"note"`
|
||||
Repos []string `json:"repos,omitempty"`
|
||||
Host string `json:"host,omitempty"`
|
||||
Tags []string `json:"tags,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
Context string `json:"context,omitempty"`
|
||||
DeleteTimestamp string `json:"delete_timestamp,omitempty"`
|
||||
Created string `json:"created"`
|
||||
}
|
||||
|
||||
type searchResult struct {
|
||||
Entry entry `json:",inline"`
|
||||
Score float32 `json:"score"`
|
||||
}
|
||||
Reference in new issue
Block a user