🎨 Changed argument name for Fetch method static repository

This commit is contained in:
Maxim Lebedev 2023-11-10 17:26:21 +06:00
parent 073e70c425
commit 77c76fde45
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ type (
Get(ctx context.Context, path string) (*domain.Resource, error)
// Fetch returns all resources from dir recursevly.
Fetch(ctx context.Context, dir string) (domain.Resources, int, error)
Fetch(ctx context.Context, pattern string) (domain.Resources, int, error)
}
dummyRepository struct{}
@ -26,6 +26,6 @@ func (dummyRepository) Get(ctx context.Context, path string) (*domain.Resource,
return nil, nil
}
func (dummyRepository) Fetch(ctx context.Context, dir string) (domain.Resources, int, error) {
func (dummyRepository) Fetch(ctx context.Context, pattern string) (domain.Resources, int, error) {
return nil, 0, nil
}