ikaWeapon

package module
v0.0.0-...-24974cc Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: MIT Imports: 8 Imported by: 0

README

weapon_analyzer

weapon_analyzer analyze grouping logic by weapon in Splatoon Gachi-Match

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Battle

type Battle struct {
	ID    int
	Lobby string
	Rule  string
	TeamA Team
	TeamB Team
}

func (*Battle) IsValid

func (b *Battle) IsValid() bool

type BattleTable

type BattleTable struct {
	BattleID int    `column:"battle_id" db:"unique"`
	Lobby    string `column:"lobby`
	Rule     string `column:"rule"`
}

func (*BattleTable) TableName

func (b *BattleTable) TableName() string

type DBHandle

type DBHandle struct {
	genmai.DB
}

func CreateDBHandle

func CreateDBHandle(path string) (*DBHandle, error)

CreateDBHandle return DBHandler which provide DB Access

func (*DBHandle) GetBattles

func (db *DBHandle) GetBattles(nextOf int, num int) ([]Battle, error)

func (*DBHandle) InsertBattle

func (db *DBHandle) InsertBattle(b *Battle) (err error)

func (*DBHandle) PrepareBattle

func (db *DBHandle) PrepareBattle() error

type InkClient

type InkClient struct {
	http.Client
}

func CreateClient

func CreateClient() *InkClient

func (*InkClient) GetBattle

func (c *InkClient) GetBattle(id int) (*Battle, error)

func (*InkClient) GetBattleOlderThan

func (c *InkClient) GetBattleOlderThan(id int, count int) ([]Battle, error)

func (*InkClient) GetRecentBattle

func (c *InkClient) GetRecentBattle(count int) ([]Battle, error)

func (*InkClient) GetWeaponKeyList

func (c *InkClient) GetWeaponKeyList() ([]string, error)

type Team

type Team struct {
	Weapon []string
}

type TeamTable

type TeamTable struct {
	ID       int64  `db:"pk"`
	BattleID int    `column:"battle_id"`
	TeamType string `column:"team_type"`
	Weapon   string `column:"weapon"`
}

func (*TeamTable) TableName

func (t *TeamTable) TableName() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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