services

package
v0.0.0-...-9ff32f4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertMessage

func AlertMessage(a models.Alert) string

func BaseOuts

func BaseOuts() []models.BaseOut

func BaseRunnerStateMessage

func BaseRunnerStateMessage(b int) string

0:none; 1:1b; 2:2b; 3:3b; 4:1b,2b; 5:1b,3b; 6:2b,3b; 7:1b,2b,3b

func BattingMessage

func BattingMessage(halfInning, batter, awayHashtag, homeHashtag string) string

func GameState

func GameState(inning int, top bool, run_diff int) int

func GameStateToInt

func GameStateToInt(gs string) int

func GameStates

func GameStates() []models.GameState

func GetTwitterCredentials

func GetTwitterCredentials(w http.ResponseWriter, r *http.Request) models.Credentials

func LeverageIndex

func LeverageIndex(bo int, gs int) float64

func MasterScoreBoardURL

func MasterScoreBoardURL(time time.Time) string

func MasterScoreboard

func MasterScoreboard(time time.Time, r *http.Request) models.Scoreboard

func MlbApiMlbTvLinkToUrl

func MlbApiMlbTvLinkToUrl(g int) string

func OutsMessage

func OutsMessage(o int) string

func Teams

func Teams() []models.Team

func Tweet

func Tweet(s string, w http.ResponseWriter, r *http.Request)

Types

type Twitter

type Twitter struct {
	// contains filtered or unexported fields
}

func NewTwitter

func NewTwitter(tc models.Credentials, r *http.Request) *Twitter

func (*Twitter) Post

func (t *Twitter) Post(url string, params map[string]string) (interface{}, error)

Jump to

Keyboard shortcuts

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