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