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.
2020-06-21 10:26:57 +00:00
|
|
|
package ennoblement
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2021-05-05 17:32:45 +00:00
|
|
|
"github.com/tribalwarshelp/shared/tw/twmodel"
|
2020-06-21 10:26:57 +00:00
|
|
|
)
|
|
|
|
|
2020-06-24 13:05:31 +00:00
|
|
|
type FetchConfig struct {
|
|
|
|
Server string
|
2021-05-05 17:32:45 +00:00
|
|
|
Filter *twmodel.EnnoblementFilter
|
2021-03-21 12:03:39 +00:00
|
|
|
Select bool
|
2020-06-24 13:05:31 +00:00
|
|
|
Count bool
|
2020-11-21 09:08:22 +00:00
|
|
|
Sort []string
|
|
|
|
Limit int
|
|
|
|
Offset int
|
2020-06-24 13:05:31 +00:00
|
|
|
}
|
|
|
|
|
2020-06-21 10:26:57 +00:00
|
|
|
type Repository interface {
|
2021-05-05 17:32:45 +00:00
|
|
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Ennoblement, int, error)
|
2020-06-21 10:26:57 +00:00
|
|
|
}
|