summaryrefslogtreecommitdiff
path: root/struct.go
diff options
context:
space:
mode:
authorMax2019-04-17 09:44:56 +0200
committerMax2019-04-17 09:44:56 +0200
commit4dc18e3691127e058833fd9c7a5bbee333c3a66c (patch)
treecfc6829bea0bf05854beb5a6a4b78eb1899c0b59 /struct.go
downloadghrss-4dc18e3691127e058833fd9c7a5bbee333c3a66c.tar.gz
Initial commit.
Diffstat (limited to 'struct.go')
-rw-r--r--struct.go41
1 files changed, 41 insertions, 0 deletions
diff --git a/struct.go b/struct.go
new file mode 100644
index 0000000..ccd2dc3
--- /dev/null
+++ b/struct.go
@@ -0,0 +1,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
+}