This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
api/version/repository.go

20 lines
322 B
Go
Raw Normal View History

2020-11-06 19:23:12 +00:00
package version
2020-06-02 15:45:21 +00:00
import (
"context"
"github.com/tribalwarshelp/shared/tw/twmodel"
2020-06-02 15:45:21 +00:00
)
type FetchConfig struct {
Filter *twmodel.VersionFilter
Select bool
Count bool
Sort []string
Limit int
Offset int
}
2020-06-02 15:45:21 +00:00
type Repository interface {
Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Version, int, error)
2020-06-02 15:45:21 +00:00
}