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/playerhistory/repository.go

18 lines
296 B
Go
Raw Normal View History

2020-06-21 11:27:08 +00:00
package playerhistory
import (
"context"
"github.com/tribalwarshelp/shared/models"
)
type FetchConfig struct {
Server string
Filter *models.PlayerHistoryFilter
Count bool
}
2020-06-21 11:27:08 +00:00
type Repository interface {
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.PlayerHistory, int, error)
2020-06-21 11:27:08 +00:00
}