blob: 861a90e2399cc6047c181931da445b5cf0c23c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package blog
import "time"
const IndexFileName = "index.json"
const IndexSchemaVersion = 1
type IndexEntry struct {
Link string `json:"link"`
ModifiedTime time.Time `json:"modifiedTime"`
Title string `json:"title"`
ShortDescription string `json:"shortDescription"`
ActionDate string `json:"actionDate"`
PublishedTime time.Time `json:"publishedTime"`
Thumbnail string `json:"thumbnail"`
Tags []string `json:"tags"`
Geolocation string `json:"geolocation"`
Medley string `json:"medley,omitempty"`
MedleyPart int `json:"medleyPart,omitempty"`
}
type IndexCategory struct {
GeneratedAt time.Time `json:"generatedAt"`
Pages []IndexEntry `json:"pages"`
}
type Index struct {
SchemaVersion int `json:"schemaVersion"`
GeneratedAt time.Time `json:"generatedAt"`
Categories map[string]IndexCategory `json:"categories"`
}
|