19 lines
790 B
Go
19 lines
790 B
Go
package event
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/SamuelTariku/FortuneBet-Backend/internal/domain"
|
|
)
|
|
|
|
type Service interface {
|
|
FetchLiveEvents(ctx context.Context) error
|
|
FetchUpcomingEvents(ctx context.Context) error
|
|
GetAllUpcomingEvents(ctx context.Context) ([]domain.UpcomingEvent, error)
|
|
GetExpiredUpcomingEvents(ctx context.Context) ([]domain.UpcomingEvent, error)
|
|
GetPaginatedUpcomingEvents(ctx context.Context, limit domain.ValidInt64, offset domain.ValidInt64, leagueID domain.ValidString, sportID domain.ValidString, firstStartTime domain.ValidTime, lastStartTime domain.ValidTime) ([]domain.UpcomingEvent, int64, error)
|
|
GetUpcomingEventByID(ctx context.Context, ID string) (domain.UpcomingEvent, error)
|
|
// GetAndStoreMatchResult(ctx context.Context, eventID string) error
|
|
|
|
}
|