summaryrefslogtreecommitdiff
path: root/app/domain/repository.go
blob: ae9da9e9295c8252f399f89329af6b025e5a4c86 (plain)
1
2
3
4
5
6
7
8
9
package domain

import "context"

type Repository[T Entity] interface {
	All(context.Context) []T
	Find(context.Context, ID) T
	Save(context.Context, T) error
}