match

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicMatch

type BasicMatch struct {
	Key           string     `json:"key"`
	EventKey      string     `json:"-"`
	YoutubeURL    string     `json:"youtubeURL"`
	PredictedTime *time.Time `json:"predictedTime,omitempty"`
	ActualTime    *time.Time `json:"actualTime,omitempty"`
}

BasicMatch holds basic information about a match excluding alliances.

type Match

type Match struct {
	BasicMatch
	YoutubeURL   string   `json:"youtubeURL"`
	RedScore     int      `json:"redScore"`
	BlueScore    int      `json:"blueScore"`
	RedAlliance  []string `json:"redAlliance"`
	BlueAlliance []string `json:"blueAlliance"`
}

Match holds basic match information and alliance info for the match.

type Service

type Service interface {
	GetBasicMatches(eventKey string) ([]BasicMatch, error)
	Get(eventKey, matchKey string, as alliance.Service) (m Match, err error)
	MassUpsert([]Match, alliance.Service) error
}

Service is a store for matches.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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