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-02 15:45:21 +00:00
|
|
|
package player
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2021-05-05 17:32:45 +00:00
|
|
|
"github.com/tribalwarshelp/shared/tw/twmodel"
|
2020-06-02 15:45:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Usecase interface {
|
2021-05-05 17:32:45 +00:00
|
|
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Player, int, error)
|
|
|
|
GetByID(ctx context.Context, server string, id int) (*twmodel.Player, error)
|
|
|
|
SearchPlayer(ctx context.Context, cfg SearchPlayerConfig) ([]*twmodel.FoundPlayer, int, error)
|
2020-06-02 15:45:21 +00:00
|
|
|
}
|