18 lines
622 B
Go
18 lines
622 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)
|
|
GetPaginatedUpcomingEvents(ctx context.Context, limit int32, offset int32, leagueID domain.ValidString, sportID domain.ValidString) ([]domain.UpcomingEvent, int64, error)
|
|
GetUpcomingEventByID(ctx context.Context, ID string) (domain.UpcomingEvent, error)
|
|
// GetAndStoreMatchResult(ctx context.Context, eventID string) error
|
|
|
|
}
|