set default store, fix store options bug, add String method

This commit is contained in:
Asim Aslam
2020-01-10 19:13:55 +00:00
parent 37d1139a57
commit 6ca298c61d
7 changed files with 29 additions and 0 deletions

View File

@@ -332,6 +332,10 @@ func (w *workersKV) request(ctx context.Context, method, path string, body inter
return respBody, resp.Header, resp.StatusCode, nil
}
func (w *workersKV) String() string {
return "cloudflare"
}
// New returns a cloudflare Store implementation.
// Account ID, Token and Namespace must either be passed as options or
// environment variables. If set as env vars we expect the following;