Philipp Mieden
|
8d85fc5f81
|
GetRepo cleanup and testing, fixed unit tests
|
2019-05-27 12:11:16 +02:00 |
|
Philipp Mieden
|
a5ff003d8f
|
added flags to testclient, added optional getrepo call
|
2019-05-24 17:40:26 +02:00 |
|
Philipp Mieden
|
871c844f7b
|
refactored GetRepo: serve JSON from fs and write directly into http.ResponseWriter
|
2019-05-24 16:41:57 +02:00 |
|
Philipp Mieden
|
1b7aa6475e
|
skip nodeRequests with empty name or id
|
2019-05-24 16:23:20 +02:00 |
|
Philipp Mieden
|
69dec41605
|
refactored repo to reuse a bytes.Buffer for updates, to reduce the number of allocations
|
2019-05-24 13:00:28 +02:00 |
|
Philipp Mieden
|
647853292b
|
added new metrics
|
2019-05-23 16:23:24 +02:00 |
|
Philipp Mieden
|
e9245a200c
|
replaced logger, fixed update queue mechanism
|
2019-05-23 14:20:38 +02:00 |
|
Philipp Mieden
|
d9f6cc60c4
|
cleanup
|
2019-05-23 10:39:44 +02:00 |
|
Philipp Mieden
|
e874cc2b16
|
implemented queuing update requests and canceling new ones when the queue is full
|
2019-05-23 10:35:30 +02:00 |
|
Frederik Löffert
|
0056f53b97
|
Merge branch 'feature/memdebug' of github.com:foomo/contentserver into feature/memdebug
|
2019-05-22 18:11:34 +02:00 |
|
Philipp Mieden
|
97633dc9d9
|
debug mode: only print number of json bytes and dont dump the entire beast to stdout
|
2019-05-21 17:30:20 +02:00 |
|
Frederik Löffert
|
f7aea048d3
|
lock update requests
|
2019-05-21 16:06:49 +02:00 |
|
Philipp Mieden
|
03d5b36706
|
repo history code cleanup
|
2019-05-21 11:43:28 +02:00 |
|
Philipp Mieden
|
dc047baf32
|
repo code cleanup
|
2019-05-21 11:10:05 +02:00 |
|
Philipp Mieden
|
5e44495adc
|
replaced encoding/json with jsoniter high performance pkg
|
2019-05-21 10:59:54 +02:00 |
|
Philipp Mieden
|
e64b07f6c6
|
fixed repo test assertion messages, added benchmark for loading test repo
|
2019-05-21 10:51:21 +02:00 |
|
Philipp Mieden
|
5ee042bcd4
|
handle unchecked errors
|
2019-05-21 10:12:05 +02:00 |
|
Philipp Mieden
|
54ee995295
|
commented out unused symbols
|
2019-05-21 10:07:13 +02:00 |
|
Philipp Mieden
|
d2e0af8aca
|
using fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...))
|
2019-05-21 10:05:01 +02:00 |
|
Philipp Mieden
|
a267dbe1ec
|
history_test cleanup and formatting
|
2019-05-21 10:04:09 +02:00 |
|
Philipp Mieden
|
bdb694b0ff
|
simplified byte equality comparison
|
2019-05-21 10:03:31 +02:00 |
|
Philipp Mieden
|
9d94c09735
|
grouped variable declarations
|
2019-05-21 09:56:38 +02:00 |
|
Philipp Mieden
|
7f9b32162e
|
used a simple channel send/receive instead of with a single case
|
2019-05-21 09:55:55 +02:00 |
|
Philipp Mieden
|
284ee99690
|
omitted comparison to bool constant
|
2019-05-21 09:55:36 +02:00 |
|
Jan Halfar
|
8f7c23ff4a
|
added DataFields to content request
|
2018-11-28 11:56:11 +01:00 |
|
Jan Halfar
|
37147120e2
|
safer access to repo.Directory in _updateDimension
|
2018-11-27 12:56:38 +01:00 |
|
Jan Halfar
|
bbded7c9db
|
better error with empty dimension, in validateContentRequest
|
2018-11-27 12:52:16 +01:00 |
|
Stefan Martinov
|
f40af92357
|
Remove dependency on testify/assert
|
2017-11-01 13:38:36 +01:00 |
|
Stefan Martinov
|
f00b1f1eb3
|
Remove dependency on pkg/errors
|
2017-11-01 13:23:56 +01:00 |
|
Stefan Martinov
|
663e50fdf6
|
Refactor cleanup deletion files method
|
2017-11-01 13:11:45 +01:00 |
|
Stefan Martinov
|
91032a037d
|
Reverse order of getHistory for a correct cleanup
|
2017-11-01 12:00:25 +01:00 |
|
Frederik Löffert
|
90d40aafc5
|
content access group support fixed
|
2017-05-10 16:27:02 +02:00 |
|
Jan Halfar
|
db94db5082
|
added maxGetURIForNodeRecursionLevel
|
2017-03-22 10:16:01 +01:00 |
|
Jan Halfar
|
39245eaea8
|
refactored resolving of content across dimensions
|
2017-01-06 18:38:16 +01:00 |
|
Frederik Löffert
|
810fbc35a2
|
fix #7: removed data from request env
|
2016-06-10 17:51:26 +02:00 |
|
Frederik Löffert
|
f9b44183f7
|
fix #6: getNodes uses env dimensions if no node dimension was given by client request
|
2016-05-30 18:47:26 +02:00 |
|
Frederik Löffert
|
38d48a470d
|
resolvedDimension added as default node.Dimension (if empty) on a getContent request
|
2016-05-11 19:28:40 +02:00 |
|
Jan Halfar
|
b8102b5164
|
dryed out repo getNodes()
|
2016-03-09 22:16:43 +01:00 |
|
Jan Halfar
|
7d5d90c69e
|
implementing client api
|
2016-03-09 18:12:41 +01:00 |
|
Jan Halfar
|
969d72b703
|
added a client, further server clean ups
|
2016-03-09 12:13:39 +01:00 |
|
Jan Halfar
|
bc63aadd50
|
refactored mock handling
|
2016-03-08 17:58:49 +01:00 |
|
Jan Halfar
|
f4311a95c3
|
cleaning up
|
2016-03-08 13:27:59 +01:00 |
|
Jan Halfar
|
988de10e70
|
added history cleanup
|
2016-03-07 17:43:51 +01:00 |
|
Jan Halfar
|
e18e19f6ac
|
flattened project structure and listened to golint
|
2016-03-07 15:36:34 +01:00 |
|