diff options
Diffstat (limited to 'app/domain')
| -rw-r--r-- | app/domain/repository.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/domain/repository.go b/app/domain/repository.go index fb7b6da..ae9da9e 100644 --- a/app/domain/repository.go +++ b/app/domain/repository.go @@ -1,7 +1,9 @@ package domain +import "context" + type Repository[T Entity] interface { - All() []T - Find(ID) T - Save(T) error + All(context.Context) []T + Find(context.Context, ID) T + Save(context.Context, T) error } |
