image

package
v0.0.0-...-625399c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResult

func GetResult(slot time.Time, results []database.RaceWeekResult) database.RaceWeekResult

func ImageFilename

func ImageFilename(image string, seasonID, week int, team string) string

func IsAvailable

func IsAvailable(colorScheme, image string, seasonID, week int, team string) bool

func MapValueIntoRange

func MapValueIntoRange(rangeStart, rangeEnd, min, max, value int) int

func MetadataFilename

func MetadataFilename(image string, seasonID, week int, team string) string

func WriteMetadata

func WriteMetadata(colorScheme, image string, seasonID, week int, season string, year, quarter int, track, team string, startDate time.Time) error

Types

type Metadata

type Metadata struct {
	ImageFilename string `json:"ImageFilename"`
	Season        string
	Year          int
	Quarter       int
	Week          int
	Track         string
	Team          string
	ColorScheme   string    `json:"ColorScheme"`
	StartDate     time.Time `json:"StartDate"`
	LastUpdated   time.Time `json:"LastUpdated"`
}

func GetMetadata

func GetMetadata(filename string) (meta Metadata)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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