18 lines
293 B
Go
18 lines
293 B
Go
package tribehistory
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tribalwarshelp/shared/models"
|
|
)
|
|
|
|
type FetchConfig struct {
|
|
Server string
|
|
Filter *models.TribeHistoryFilter
|
|
Count bool
|
|
}
|
|
|
|
type Repository interface {
|
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.TribeHistory, int, error)
|
|
}
|