From ff9790d2e5c3482ccd6109adac475a9868fc0ab6 Mon Sep 17 00:00:00 2001 From: horus Date: Tue, 20 Feb 2018 17:15:58 +0100 Subject: Refactoring + adds a more granular log level setting. (crawler) --- crawler/struct.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 crawler/struct.go (limited to 'crawler/struct.go') 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 +} -- cgit v1.2.3