mlblive

package
v0.0.113 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game interface {
	GetRunners(ctx context.Context) (*Runners, error)
	GetCount(ctx context.Context) (string, error)
	GetInningState(ctx context.Context) (*InningState, error)
	GetHomeScore(ctx context.Context) (int, error)
	GetAwayScore(ctx context.Context) (int, error)
	HomeAbbrev() string
	AwayAbbrev() string
	HomeColor() (*color.RGBA, *color.RGBA, error)
	AwayColor() (*color.RGBA, *color.RGBA, error)
}

type InningState

type InningState struct {
	Number   string
	IsTop    bool
	IsMiddle bool
	Outs     int
}

type MlbLive

type MlbLive struct {
	Logger *zap.Logger
	// contains filtered or unexported fields
}

func (*MlbLive) RenderLive

func (m *MlbLive) RenderLive(ctx context.Context, canvas board.Canvas, game Game, homeLogo *logo.Logo, awayLogo *logo.Logo) error

type Runners

type Runners struct {
	First  bool
	Second bool
	Third  bool
}

Jump to

Keyboard shortcuts

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