summaryrefslogtreecommitdiff
path: root/struct.go
blob: 129d3313c1fe5e7119e2b4b89019b62980bff12f (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
33
34
35
36
37
38
39
40
41
42
package main

import (
	"time"
)

type Platform struct {
	ID   int
	Name string
	URL  string
}

type Language struct {
	ID   int
	Name string
}

type UpdatePeriod struct {
	ID   int
	Name string
}

type Owner struct {
	ID       int
	Name     string
	URL      string
	Platform *Platform
}

type Entry struct {
	ID              int
	Title           string
	Synopsis        string
	Owner           *Owner
	Platform        *Platform
	URL             string
	Language        *Language
	Stars           int
	NaturalLanguage string
	UpdatePeriod    *UpdatePeriod
	Created_At      time.Time
}