Port over some SP v2 bits (#6516)

* Port over some SP v2 bits

Specifically:

* Add too-large handling to Physical (Consul only for now)
* Contextify some identity funcs
* Update SP protos

* Add size limiting to inmem storage
This commit is contained in:
Jeff Mitchell
2019-05-01 13:47:41 -04:00
committed by GitHub
parent a84a16da5c
commit f7bb5a2e56
21 changed files with 337 additions and 133 deletions

View File

@@ -20,6 +20,10 @@ const (
PutOperation = "put"
)
const (
ErrValueTooLarge = "put failed due to value being too large"
)
// ShutdownSignal
type ShutdownChannel chan struct{}