bike

package
v0.0.0-...-2dd8f19 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGBFBattle

func IsGBFBattle(msg string) bool

Types

type BattleInfo

type BattleInfo struct {
	Id       int64  `json:"id"`
	Level    string `json:"level"`
	RoomId   string `json:"roomId"`
	MobName  string `json:"mobName"`
	Creator  string `json:"creator"`
	CreateAt string `json:"createAt"`
}

func ConvertGBFBattleInfo

func ConvertGBFBattleInfo(msg string) (*BattleInfo, error)

type BattleInfoReceiver

type BattleInfoReceiver interface {
	NewBattleInfo(battleInfo *BattleInfo) error
}

type GbfBike

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

func NewGbfBike

func NewGbfBike(consumerKey, consumerSecret, accessToken, accessSecret string) (*GbfBike, error)

func (*GbfBike) AddBattleReceiver

func (gb *GbfBike) AddBattleReceiver(r BattleInfoReceiver)

func (*GbfBike) Start

func (gb *GbfBike) Start() error

Jump to

Keyboard shortcuts

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