Commit Graph

89 Commits (f63611c1709d1fac9625d259d6ab7660f0c94dc0)

Author SHA1 Message Date
ben hockey 9a3c28748c change timestamp to time 2015-05-11 12:28:47 -05:00
s7v7nislands 4f881139ac remove unused function 2015-05-06 22:00:31 +08:00
Cory LaNou c604a765de Always send auth headers for client requests if present 2015-04-22 18:15:39 -06:00
Jason Wilder 38628e540b Make drop database close and release resources
Drop database did not close any open shard files or close
any topic reader/heartbeats.  In the tests, we create and drop new
databases during each test run so these were open files and connection
slowed things down and consumed a lot of RAM as the tests progressed.
2015-04-21 13:39:58 -06:00
Cory LaNou fa103d9400 clean up error logic for Query endpoint 2015-04-13 15:56:49 -06:00
Cory LaNou a7ae9a529a need to return an error if status code is not 200 2015-04-13 15:56:49 -06:00
Cory LaNou 4319ac051b use basic auth instead of the uri 2015-04-13 15:56:29 -06:00
Jari Sukanen 704691454d server: rename influxdb.Results type to influxdb.Response (issue: #2050)
Rename influxdb.Results to influxdb.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 12:17:33 +03:00
Jari Sukanen a56ea6f191 client: rename client.Results type to client.Response (issue: #2050)
Rename client.Results to client.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 11:43:53 +03:00
Cory LaNou a4b133c601 Merge pull request #2093 from derailed/BUG_PointPrecision
Point Precision not getting marshaled correctly...
2015-03-27 21:10:04 -06:00
Philip O'Toole 6a77a38cf2 Finaly copyedit of client README 2015-03-27 15:29:41 -07:00
derailed 0519d46132 cleaning up 2015-03-27 14:07:49 -06:00
derailed a6ac28607b updated the docs/example based on team feedback + added instructions for auth 2015-03-27 14:01:45 -06:00
derailed 5eb3e5fc1a added godoc examples 2015-03-27 11:28:51 -06:00
derailed 37a0b22df3 Beefed up influx client README 2015-03-27 09:56:00 -06:00
derailed d02b08d252 Not sure if this was intended or not. Pt Precision is not getting marshaled correctly?? 2015-03-26 18:45:36 -06:00
Rene Fragoso afc6c8be24 Cleanup golint warnings for client code
Fixes the following two warnings:

influxdb.go:149:1: exported method Client.Dump should have comment or be
unexported
- Adds comment for Client.Dump

influxdb.go:263:1: receiver name rs should be consistent with previous
receiver name r for Results
- Changes receiver name from "a" to "r"
2015-03-22 01:33:04 -04:00
Joseph Rothrock 21fd2e2662 dump cmd
rename dump flag

put an error response body if json marshalling breaks.

detect and respond to http error codes in the client.
2015-03-18 14:10:36 -07:00
Joseph Rothrock 9063312636 cory sez to remove tags 2015-03-17 15:27:33 -07:00
Joseph Rothrock d7420683ae tweaking in response to various PR comments 2015-03-16 15:31:41 -07:00
Joseph Rothrock 4aabcd907c Dump cmd
Issue: 1909
move dump cmd to an http endpoint.
Add dump cmd on client to call the endpoint.
2015-03-13 15:37:23 -07:00
Cory LaNou 18f159ae16 point to godoc 2015-03-09 13:07:50 -06:00
Cory LaNou 3172f31416 version is a lie for the client library 2015-03-09 09:51:47 -06:00
Cory LaNou abb96535dd remove more indenting 2015-03-09 09:08:15 -06:00
Cory LaNou b31ecd89ea remove indents from readme 2015-03-09 09:08:15 -06:00
Cory LaNou 6afa4fb083 update test to expect a default user agent 2015-03-09 09:08:14 -06:00
Cory LaNou f1d7b3e200 first pass at documenting library 2015-03-09 09:08:14 -06:00
Cory LaNou c52210d9a5 fix signature and add comment 2015-03-09 09:08:14 -06:00
Cory LaNou 97dc11c96d more documenting. starting to update readme. 2015-03-09 09:08:14 -06:00
Cory LaNou 2b4f155407 return no results if successful. update tests. add comments 2015-03-09 09:08:14 -06:00
Cory LaNou 7c926a9934 default and send user agent 2015-03-09 09:08:14 -06:00
Cory LaNou 278c652d6f send credentials if provided 2015-03-09 09:08:14 -06:00
Cory LaNou f74a5435ca always stream decode json 2015-03-07 07:12:22 -07:00
Cory LaNou 548a201588 remove log debug statements 2015-03-07 07:12:22 -07:00
Cory LaNou f01ee5eb51 adding integration tests for client library. misc bug fixes 2015-03-07 07:12:22 -07:00
Cory LaNou 3aafbd9d5f omitempty to cut down on marshal overhead and http traffic 2015-03-07 07:12:22 -07:00
Cory LaNou 2bdc5d2ef5 remove obsolete Timestamp code 2015-03-07 07:12:22 -07:00
Cory LaNou 0fb8938456 know the difference between marshal and unmarshal 2015-03-07 07:12:22 -07:00
Cory LaNou d334bec35a more cleanup on client.Point. testing for json.Marshal(client.Point) 2015-03-07 07:12:22 -07:00
Cory LaNou 4f5ad7399e add tests for NormalizeBatchPoints. Remove custom type client.Timestamp 2015-03-07 07:12:22 -07:00
Cory LaNou bda9685526 Use BatchPoints for writing from client library 2015-03-07 07:12:21 -07:00
Philip O'Toole 2f0fe901e3 Rename "Values" to "Fields" for writes 2015-02-23 15:06:56 -08:00
Philip O'Toole 3e727ac01e Change "Rows" to "Series" in API output 2015-02-22 21:21:49 -08:00
Mark Rushakoff e9d5b74738 Client user agent is configurable 2015-02-11 12:35:15 -08:00
Cory LaNou bc46d590dd return top level error for results 2015-02-09 17:58:30 -07:00
Cory LaNou 72fb148660 single server integration test is working 2015-02-05 08:50:07 -07:00
Philip O'Toole d02281988a Individual points should only be converted if set
By changing the 'Timestamp' key to a pointer, it allows the code to
detect when the key wasn't set at all. This then allows the code to know
when to insert a value from the top-level of the batch struct.
2015-02-03 18:43:23 -08:00
Cory LaNou cc3a147421 Use time.Equal whenever comparing time 2015-01-30 13:45:07 -07:00
Cory LaNou cea1bfb8f6 update error message to ouput correct actual 2015-01-30 13:45:07 -07:00
Cory LaNou e2726f7b79 try testing with UTC time 2015-01-30 13:45:07 -07:00