Rename Storable interface to Storer

See https://golang.org/doc/effective_go.html#interface-names
This commit is contained in:
Denis Arh
2020-09-09 08:40:50 +02:00
parent 11b7803305
commit 24f8457d71
32 changed files with 110 additions and 110 deletions
@@ -17,13 +17,13 @@ import (
)
type (
Transactionable interface {
Tx(context.Context, func(context.Context, Storable) error) error
Transactioner interface {
Tx(context.Context, func(context.Context, Storer) error) error
}
// Sortable interface combines interfaces of all supported store interfaces
Storable interface {
Transactionable
Storer interface {
Transactioner
{{ range .Definitions -}}
{{ export .Types.Plural }}
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"testing"
)
func testAllGenerated(t *testing.T, s store.Storable) {
func testAllGenerated(t *testing.T, s store.Storer) {
{{- range . }}
// Run generated tests for {{ .Types.Base }}
t.Run({{ printf "%q" .Types.Base }}, func(t *testing.T) {