api_utils

package
v0.0.0-...-562e60d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnyMatches

func GetAnyMatches(gameType api.GameType, count int, reverse bool) ([]message.Match, error)

获取最近的比赛

func GetIpAddress

func GetIpAddress() []string

获取接口ip地址

func GetLiveActivityKey

func GetLiveActivityKey(matchId string) (string, error)

获取比赛的activity key

func GetLiveMsgList

func GetLiveMsgList(matchId string, liveActivityKeyStr string, commentId string) ([]message.LiveMsg, error)

func GetMatchesFromDate

func GetMatchesFromDate(gametype api.GameType, dates ...string) ([]message.Match, error)

根据日期获取比赛

func GetScheduleList

func GetScheduleList(gametype api.GameType) (message.GameSchedule, error)

获取赛程

func GetSingleMatch

func GetSingleMatch(matchId string) (message.Match, error)

根据比赛id获取比赛信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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