summaryrefslogtreecommitdiff
path: root/crawler/struct.go
diff options
context:
space:
mode:
authorhorus2018-02-20 17:15:58 +0100
committerhorus2018-02-20 17:15:58 +0100
commitff9790d2e5c3482ccd6109adac475a9868fc0ab6 (patch)
tree3bc0d0727eaeb45b09199b6a711b5d13b3041ade /crawler/struct.go
parent4d3d10f634e872d0d4f27311c53f66680e574ad3 (diff)
downloadalkobote-ff9790d2e5c3482ccd6109adac475a9868fc0ab6.tar.gz
Refactoring + adds a more granular log level setting. (crawler)
Diffstat (limited to 'crawler/struct.go')
-rw-r--r--crawler/struct.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/crawler/struct.go b/crawler/struct.go
new file mode 100644
index 0000000..1965c2e
--- /dev/null
+++ b/crawler/struct.go
@@ -0,0 +1,32 @@
+package main
+
+type Angebot struct {
+ Id int
+ Name string
+ Abv float32
+ Volume float32
+ Age int
+ Shop int
+ Url string
+ Short_url string
+ Original_price int
+ Discounted_price int
+ Base_price int
+ Image_url string
+ Spirit_type string
+ Website string
+ Valid_until int
+
+ error_msg string
+ error_ctx string
+}
+
+type Shop struct {
+ Id int
+ Name string
+ Url string
+ Short_url string
+ Logo_url string
+ Shipping_costs int
+ Free_shipping string
+}