Documentation ¶
Overview ¶
Package core contains the function for finding records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindRecords ¶
func FindRecords(iterators []ShiftIterator, stages []types.Stage, hasEvents types.EventArr, tides types.TideArr, weapons []types.WeaponSchedule, client *http.Client) (map[recordName]*map[string]*map[types.WeaponSchedule]*record, []error)
FindRecords uses the given iterators to pull the shift data from the various sources based on the parameters, and finds records based on the set filters.
Types ¶
type NoMoreShiftsError ¶
type NoMoreShiftsError struct{}
NoMoreShiftsError implements the error interface.
func (*NoMoreShiftsError) Error ¶
func (*NoMoreShiftsError) Error() string
Error returns a static message of "no more shifts".
type Shift ¶
type Shift interface { GetTotalEggs() int GetStage(types.Schedule) (*types.Stage, []error) GetWeaponSet(types.Schedule) (*types.WeaponSchedule, []error) GetEvents() (*types.EventArr, []error) GetTides() (*types.TideArr, []error) GetEggsWaves() []int GetWaveCount() int GetClearWave() int GetTime() (time.Time, []error) GetIdentifier(string) string }
Shift is a generic source of match results, with only the necessary details available, accessible as methods.
type ShiftIterator ¶
ShiftIterator fulfils the design pattern of iterating through a set of Shift, only being able to progress one way.
Click to show internal directories.
Click to hide internal directories.