This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-30 08:35:45 +00:00
|
|
|
package tribe
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-06-02 07:00:40 +00:00
|
|
|
|
|
|
|
"github.com/tribalwarshelp/dcbot/models"
|
2020-05-30 08:35:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
|
|
|
Store(ctx context.Context, tribe *models.Tribe) error
|
|
|
|
StoreMany(ctx context.Context, tribes []*models.Tribe) error
|
|
|
|
Update(ctx context.Context, tribe *models.Tribe) error
|
|
|
|
Delete(ctx context.Context, filter *models.TribeFilter) ([]*models.Tribe, error)
|
|
|
|
Fetch(ctx context.Context, filter *models.TribeFilter) ([]*models.Tribe, int, error)
|
|
|
|
FetchWorlds(ctx context.Context) ([]string, error)
|
|
|
|
}
|