mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-10 18:01:53 +02:00
Add Gist code search (#194)
This commit is contained in:
21
internal/index/gist.go
Normal file
21
internal/index/gist.go
Normal file
@ -0,0 +1,21 @@
|
||||
package index
|
||||
|
||||
type Gist struct {
|
||||
GistID uint
|
||||
Username string
|
||||
Title string
|
||||
Content string
|
||||
Filenames []string
|
||||
Extensions []string
|
||||
Languages []string
|
||||
CreatedAt int64
|
||||
UpdatedAt int64
|
||||
}
|
||||
|
||||
type SearchGistMetadata struct {
|
||||
Username string
|
||||
Title string
|
||||
Filename string
|
||||
Extension string
|
||||
Language string
|
||||
}
|
Reference in New Issue
Block a user