store: make state (de)serialization internal

This hides the state hanlding in the store package. As before, it
can be disabled by passing `nil` instead of the path to the state
file.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-10-05 21:29:55 +02:00 committed by Lars Karlitski
parent ad637b46f8
commit 68ade23fcc
4 changed files with 65 additions and 65 deletions

View file

@ -88,7 +88,7 @@ func TestBasic(t *testing.T) {
//{"PATCH", "/job-queue/v1/jobs/ffffffff-ffff-ffff-ffff-ffffffffffff", `{"status":"FINISHED"}`, http.StatusNotAllowed, ``},
}
store := store.New(nil, nil)
store := store.New(nil)
api := jobqueue.New(nil, store)
for _, c := range cases {
id, _ := uuid.Parse("ffffffff-ffff-ffff-ffff-ffffffffffff")