github.com/VMitov/casper@v0.4.0/storage.go (about) 1 package casper 2 3 // Storage is interface for storages. 4 type Storage interface { 5 String(format string) (string, error) 6 GetChanges(config []byte, format, key string) (Changes, error) 7 Diff(cs Changes, pretty bool) string 8 Push(cs Changes) error 9 } 10 11 // Changes is interface for changes. 12 type Changes interface { 13 Len() int 14 }