summaryrefslogtreecommitdiff
path: root/struct.go
blob: ccd2dc383613ef50729896b94a04cc09228bbe39 (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
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
	UpdatePeriod *UpdatePeriod
	Created_At   time.Time
}