core

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

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

type ShiftIterator interface {
	Next() (Shift, []error)
	GetAddress() string
}

ShiftIterator fulfils the design pattern of iterating through a set of Shift, only being able to progress one way.

Directories

Path Synopsis
Package types contains exported types for various aspects of Salmon Run.
Package types contains exported types for various aspects of Salmon Run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL