feat: added repo export/import streaming methods
This commit is contained in:
1 parent
c5465fe6f6
commit
4de3218c40
2 files changed
+108
-9
No files matched your search
@@ -12,11 +12,14 @@ type SpellCaster interface {
|
||||
type SpellCommand interface {
|
||||
Add(ctx context.Context, spell models.Spell) error
|
||||
Delete(ctx context.Context, spellName string) error
|
||||
Import(ctx context.Context, ch <-chan models.Spell) error
|
||||
}
|
||||
|
||||
type SpellQuery interface {
|
||||
Get(ctx context.Context, spellName string) (models.Spell, error)
|
||||
GetMany(ctx context.Context, query models.SearchQuery) ([]models.Spell, error)
|
||||
Count(ctx context.Context) (int, error)
|
||||
Export(ctx context.Context) (<-chan models.Spell, <-chan error, error)
|
||||
}
|
||||
|
||||
type Application struct {
|
||||
|
||||
Reference in new issue
Block a user