Commit Graph
8 Commits
Author SHA1 Message Date
dm 017d100810 Restructured code to pass up and handle errors
Pretty big change.  Things now pass up errors that can be handled by the
caller.  This brought about a lot of change.  Errors attempt to be
descriptive of where they came from and notify user of the api what
potentailly caused the error.  Also renamed go-halo5-api.go to a more
suitable name, http.go.  This might change in the future if we implement
the http.Client interface
2016-05-11 14:52:37 -07:00
dm 4550ba9d30 moved main.go in to a seperate cmd dir 2016-05-11 10:48:44 -07:00
dm 914869dfed updating profile.go to use methods
also changed some things in go-halo5-api.go.  Still need to rethink how
we are passing up errors and failures of trying to get the results
2016-05-11 10:48:00 -07:00
dm 1c339ec1a0 code reorg to leverage methods instead of function
moved all metadata.go function calls into method calls for the Halo
struct.  This will make it easier to encapsulate baseurl, apikey, blah
blah, and also makes the code a little bit more readable.  Stats.go and
profile.go are to follow.

Still need to implement http.Client interface and look over the code in
go-halo5-api.go.  Most likely needs to break out and be cleaned up
2016-05-10 21:30:18 -07:00
dm b558a172fd adding api structs
possible errors, will need further testing
2016-05-10 21:30:09 -07:00
dm 38f040a6ea updated gitignore 2016-05-10 21:29:56 -07:00
dm 5fbb161f36 created halo pkg and renamed functions
haven't changed any of the code, per se.  Moved the halo pkg code and
created main.go file.  Should create tests for all of the functionality.
2016-05-05 14:45:52 -07:00
dm a92e282634 adding gitignore file 2016-05-05 14:44:07 -07:00