Create new package for http datatypes
authorMaciej Wereski <m.wereski@partner.samsung.com>
Thu, 9 Nov 2017 12:54:46 +0000 (13:54 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 5 Jun 2018 10:48:28 +0000 (12:48 +0200)
commit32f4c975ec02537922c1a7ffb44551dd8abf805e
tree7a346b458be42b0a9a4a73de9809ea7ff5918334
parentc2eb4e9e2696b098b6f67c911999620a1ef79a90
Create new package for http datatypes

Few datatypes will be shared between server and client, such as server
errors and filters. Move these datatypes to separate package.

Change-Id: I06f025ba8449d2e2c045fbdd84fe59fd76b065ca
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
64 files changed:
http/error.go [moved from server/api/v1/error.go with 87% similarity]
http/error_test.go [new file with mode: 0644]
http/filter.go [moved from server/api/v1/filter.go with 95% similarity]
http/filter_test.go [moved from server/api/v1/filter_test.go with 95% similarity]
http/http.go [new file with mode: 0644]
http/server/api/v1/api.go [moved from server/api/v1/api.go with 86% similarity]
http/server/api/v1/api_test.go [moved from server/api/v1/api_test.go with 86% similarity]
http/server/api/v1/handlers.go [moved from server/api/v1/handlers.go with 78% similarity]
http/server/api/v1/handlers_test.go [moved from server/api/v1/handlers_test.go with 96% similarity]
http/server/api/v1/testdata/acquire-worker-bad-id-POST.json [moved from server/api/v1/testdata/acquire-worker-bad-id-POST.json with 100% similarity]
http/server/api/v1/testdata/acquire-worker-missing-POST.json [moved from server/api/v1/testdata/acquire-worker-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/acquire-worker-valid-POST.json [moved from server/api/v1/testdata/acquire-worker-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/close-req-bad-id-POST.json [moved from server/api/v1/testdata/close-req-bad-id-POST.json with 100% similarity]
http/server/api/v1/testdata/close-req-missing-POST.json [moved from server/api/v1/testdata/close-req-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/close-req-valid-POST.json [moved from server/api/v1/testdata/close-req-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-bad-filter-POST.json [moved from server/api/v1/testdata/filter-reqs-bad-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-empty-POST.json [moved from server/api/v1/testdata/filter-reqs-empty-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-empty-json-POST.json [moved from server/api/v1/testdata/filter-reqs-empty-json-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-malformed-json-POST.json [moved from server/api/v1/testdata/filter-reqs-malformed-json-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-nil-POST.json [moved from server/api/v1/testdata/filter-reqs-nil-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-nomatch-all-POST.json [moved from server/api/v1/testdata/filter-reqs-nomatch-all-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-reqs-valid-filter-POST.json [moved from server/api/v1/testdata/filter-reqs-valid-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-bad-filter-POST.json [moved from server/api/v1/testdata/filter-workers-bad-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-empty-body-POST.json [moved from server/api/v1/testdata/filter-workers-empty-body-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-empty-filter-POST.json [moved from server/api/v1/testdata/filter-workers-empty-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-empty2-filter-POST.json [moved from server/api/v1/testdata/filter-workers-empty2-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-empty3-filter-POST.json [moved from server/api/v1/testdata/filter-workers-empty3-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-malformed-json-POST.json [moved from server/api/v1/testdata/filter-workers-malformed-json-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-nomatch-POST.json [moved from server/api/v1/testdata/filter-workers-nomatch-POST.json with 100% similarity]
http/server/api/v1/testdata/filter-workers-valid-filter-POST.json [moved from server/api/v1/testdata/filter-workers-valid-filter-POST.json with 100% similarity]
http/server/api/v1/testdata/list-reqs-all-GET.json [moved from server/api/v1/testdata/list-reqs-all-GET.json with 100% similarity]
http/server/api/v1/testdata/list-workers-all-GET.json [moved from server/api/v1/testdata/list-workers-all-GET.json with 100% similarity]
http/server/api/v1/testdata/new-req-bad-prio-POST.json [moved from server/api/v1/testdata/new-req-bad-prio-POST.json with 100% similarity]
http/server/api/v1/testdata/new-req-malformed-json-POST.json [moved from server/api/v1/testdata/new-req-malformed-json-POST.json with 100% similarity]
http/server/api/v1/testdata/new-req-valid-POST.json [moved from server/api/v1/testdata/new-req-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/panic-other-error.txt [moved from server/api/v1/testdata/panic-other-error.txt with 100% similarity]
http/server/api/v1/testdata/panic-server-error.txt [moved from server/api/v1/testdata/panic-server-error.txt with 100% similarity]
http/server/api/v1/testdata/prolong-access-bad-id-POST.json [moved from server/api/v1/testdata/prolong-access-bad-id-POST.json with 100% similarity]
http/server/api/v1/testdata/prolong-access-missing-POST.json [moved from server/api/v1/testdata/prolong-access-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/prolong-access-valid-POST.json [moved from server/api/v1/testdata/prolong-access-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/req-info-GET.json [moved from server/api/v1/testdata/req-info-GET.json with 100% similarity]
http/server/api/v1/testdata/req-info-bad-id-GET.json [moved from server/api/v1/testdata/req-info-bad-id-GET.json with 100% similarity]
http/server/api/v1/testdata/req-info-missing-GET.json [moved from server/api/v1/testdata/req-info-missing-GET.json with 100% similarity]
http/server/api/v1/testdata/update-req-bad-id-POST.json [moved from server/api/v1/testdata/update-req-bad-id-POST.json with 100% similarity]
http/server/api/v1/testdata/update-req-empty-POST.json [moved from server/api/v1/testdata/update-req-empty-POST.json with 100% similarity]
http/server/api/v1/testdata/update-req-malformed-json-POST.json [moved from server/api/v1/testdata/update-req-malformed-json-POST.json with 100% similarity]
http/server/api/v1/testdata/update-req-mismatch-POST.json [moved from server/api/v1/testdata/update-req-mismatch-POST.json with 100% similarity]
http/server/api/v1/testdata/update-req-missing-POST.json [moved from server/api/v1/testdata/update-req-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/update-req-prio-POST.json [moved from server/api/v1/testdata/update-req-prio-POST.json with 100% similarity]
http/server/api/v1/testdata/update-req-valid-POST.json [moved from server/api/v1/testdata/update-req-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-deregister-bad-uuid-POST.json [moved from server/api/v1/testdata/worker-deregister-bad-uuid-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-deregister-missing-POST.json [moved from server/api/v1/testdata/worker-deregister-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-deregister-valid-POST.json [moved from server/api/v1/testdata/worker-deregister-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-info-bad-uuid-GET.json [moved from server/api/v1/testdata/worker-info-bad-uuid-GET.json with 100% similarity]
http/server/api/v1/testdata/worker-info-missing-GET.json [moved from server/api/v1/testdata/worker-info-missing-GET.json with 100% similarity]
http/server/api/v1/testdata/worker-info-valid-GET.json [moved from server/api/v1/testdata/worker-info-valid-GET.json with 100% similarity]
http/server/api/v1/testdata/worker-set-groups-bad-uuid-POST.json [moved from server/api/v1/testdata/worker-set-groups-bad-uuid-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-groups-malformed-json-POST.json [moved from server/api/v1/testdata/worker-set-groups-malformed-json-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-groups-missing-POST.json [moved from server/api/v1/testdata/worker-set-groups-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-groups-valid-POST.json [moved from server/api/v1/testdata/worker-set-groups-valid-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-state-bad-uuid-POST.json [moved from server/api/v1/testdata/worker-set-state-bad-uuid-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-state-malformed-json-POST.json [moved from server/api/v1/testdata/worker-set-state-malformed-json-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-state-missing-POST.json [moved from server/api/v1/testdata/worker-set-state-missing-POST.json with 100% similarity]
http/server/api/v1/testdata/worker-set-state-valid-POST.json [moved from server/api/v1/testdata/worker-set-state-valid-POST.json with 100% similarity]