Commit graph

934 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
aeb362e541 Update comments 2017-11-16 20:50:57 +00:00
Tobie Morgan Hitchcock
1ee95333fb Run auth middleware just before gzip middleware 2017-11-16 20:50:52 +00:00
Tobie Morgan Hitchcock
33ab1efb08 Ensure that gzip is the final middleware to be initialised 2017-11-16 20:49:28 +00:00
Tobie Morgan Hitchcock
8f06b958ff Remove TCP deadline timeouts completely
Deadline timeouts are not useful, as they do not give any meaningful http error responses to the end user. Instead we now make use of contexts throught the system to detect query timeouts, and send error messages accordingly.
2017-11-16 20:48:08 +00:00
Tobie Morgan Hitchcock
9fb7eec04b Add specific HTTP CORS headers 2017-11-16 20:46:54 +00:00
Tobie Morgan Hitchcock
82513d6e54 Improve RPC authentication query information 2017-11-16 20:46:17 +00:00
Tobie Morgan Hitchcock
d5a947bf53 Add batch support to RPC endpoint queries 2017-11-16 20:46:02 +00:00
Tobie Morgan Hitchcock
d7469c30d5 Insure start and limit query params do not overflow limit 2017-11-16 20:44:20 +00:00
Tobie Morgan Hitchcock
878ddbbf09 Fix SQL query for REST DELETE route 2017-11-16 20:43:38 +00:00
Tobie Morgan Hitchcock
28c10c9747 Add VERSION query param support to REST GET route 2017-11-16 20:43:26 +00:00
Tobie Morgan Hitchcock
0675bdb000 Change allowed content types on HTTP routes 2017-11-16 20:42:42 +00:00
Tobie Morgan Hitchcock
eb160265b7 Decrease http timeouts for /signup and /signin routes 2017-11-16 20:41:29 +00:00
Tobie Morgan Hitchcock
96cd07e1d1 Improve http error messages 2017-11-16 20:40:40 +00:00
Tobie Morgan Hitchcock
fd3df8dbfc No need to send error message if request is complete 2017-11-16 20:38:45 +00:00
Tobie Morgan Hitchcock
8883645aa7 No need to send error message if websocket 2017-11-16 20:38:33 +00:00
Tobie Morgan Hitchcock
08cf03f98b Add ‘fncs’ package for all sql function commands 2017-11-16 20:31:20 +00:00
Tobie Morgan Hitchcock
af00a45721 Add initial ‘geof’ package for geospatial functions 2017-11-16 20:30:56 +00:00
Tobie Morgan Hitchcock
096984ad05 Improve ‘conv’ package for converting values to specific data types 2017-11-16 20:30:27 +00:00
Tobie Morgan Hitchcock
da503f973e Improve Dockerfile 2017-11-16 20:23:13 +00:00
Tobie Morgan Hitchcock
1fdfb2c58a Improve circleci config file 2017-11-16 20:21:55 +00:00
Tobie Morgan Hitchcock
e300e9c423 Improve efficiency of database key encoding and decoding
Make use of the github.com/abcum/bump package to efficiently encode and decode from and to byte slices, whilst at the same time using encoder and decoder pools, instead of creating a new buffer for each encoding / decoding process.
2017-11-16 20:18:42 +00:00
Tobie Morgan Hitchcock
61015c8f7a Add database key for FT foreign tables 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
8ffdaa6d77 Add database key for EV table events 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
21cb197d5a Make sure LV database key specifies a table 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
6a1ec1b2bb Remove unused VW database key 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
81497e941d Add Copy() method to all keys for efficiently duplicating a key 2017-11-16 20:16:51 +00:00
Tobie Morgan Hitchcock
b957202ee5 Remove unused CK database key 2017-11-16 20:16:24 +00:00
Tobie Morgan Hitchcock
fa714c1bdd Listen and wait for errors when server exits 2017-11-16 20:03:38 +00:00
Tobie Morgan Hitchcock
010d0ffe4b Ensure server certs are stored in tmp directory 2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
4320804779 Fix bug in error output message 2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
e401ff9b3f Improve cli command flag help information 2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
0ce8e78577 Make use of direct byte encoding / decoding
With the lates github.com/abcum/cork package, it is now possible to encode and decode a cork data stream without creating a new buffer each time. Instead the github.com/abcum/bump pacakge efficiently buffers the byte slice without any unnecessary allocations.
2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
44591abfe5 Add ‘hook’ package for retryable functions
The hook package enables static and backoff retryable functions. This package can be used for calling remote webhooks concurrently in separate goroutines.
2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
cfa6452863 Improve import and export cli command error parsing 2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
12c2ada091 Improve error messages on REST API queries 2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
121498e95e Add ‘math’ package for all mathematical functions 2017-11-16 19:54:55 +00:00
Tobie Morgan Hitchcock
34a4132403 Add ‘ints’ package for returning bounded number values from arguments 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
62284f0300 Add text package for specific functions on text strings 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
c2135b1494 Add rand package for generation of random numbers 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
e9bde01cb1 Put index diffing code into a separate package 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
e8f17b1602 Add ‘comp’ package for comparing ordering of data types 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
428ad4312c Add an Append function which appends to a slice 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
4640839231 Use switch statements instead of if statements 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
d66e3d5866 When resetting a doc, reset it to an empty map 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
3f68f1318c Copy should return a new document, not interface{} 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
33391e0a28 Improve and fix diff package 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
c0110b8af9 Implement updated rixxdb api interface 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
ce3b62ab4b Update 3rd party dependencies 2017-11-16 19:54:54 +00:00
Tobie Morgan Hitchcock
ed3b39b6ac Add sql command to the command line ui
Add sql command to the command line ui , useful for executing and processing an sql file against a local or remote database.
2017-11-16 19:54:36 +00:00
Tobie Morgan Hitchcock
973439e73a Update to latest cloud.google.com package 2017-11-15 18:18:52 +00:00