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

21 lines
343 B
Go

package server
import (
"context"
"github.com/tribalwarshelp/shared/tw/twmodel"
)
type FetchConfig struct {
Filter *twmodel.ServerFilter
Columns []string
Select bool
Count bool
Sort []string
Limit int
Offset int
}
type Repository interface {
Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Server, int, error)
}