Add compile tests to verify physical stores satisfy the correct interfaces (#3820)

This commit is contained in:
Brian Kassouf
2018-01-19 17:44:24 -08:00
committed by GitHub
parent 2fea072515
commit fbe5f87278
20 changed files with 76 additions and 27 deletions

View File

@@ -69,6 +69,11 @@ const (
DynamoDBWatchRetryInterval = 5 * time.Second
)
// Verify DynamoDBBackend satisfies the correct interfaces
var _ physical.Backend = (*DynamoDBBackend)(nil)
var _ physical.HABackend = (*DynamoDBBackend)(nil)
var _ physical.Lock = (*DynamoDBLock)(nil)
// DynamoDBBackend is a physical backend that stores data in
// a DynamoDB table. It can be run in high-availability mode
// as DynamoDB has locking capabilities.