espn

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESPN

type ESPN struct {
	sync.Mutex
	// contains filtered or unexported fields
}

ESPN is used for accessing ESPN API's

func New

func New(logger *zap.Logger) *ESPN

New ...

func (*ESPN) ClearCache

func (e *ESPN) ClearCache() error

ClearCache ...

func (e *ESPN) GetLogo(ctx context.Context, sport string, league string, teamAbbreviation string, logoURLSearch string) (image.Image, error)

GetLogo ...

func (*ESPN) GetTeams

func (e *ESPN) GetTeams(ctx context.Context, sport string, league string) ([]*Team, error)

GetTeams ...

type Logo struct {
	Href string `json:"href"`
}

Logo ...

type Team

type Team struct {
	Abbreviation string  `json:"abbreviation"`
	Logos        []*Logo `json:"logos"`
}

Team ...

Jump to

Keyboard shortcuts

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