17 lines
263 B
Go
17 lines
263 B
Go
package version
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tribalwarshelp/shared/models"
|
|
)
|
|
|
|
type FetchConfig struct {
|
|
Filter *models.VersionFilter
|
|
Count bool
|
|
}
|
|
|
|
type Repository interface {
|
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.Version, int, error)
|
|
}
|