goLotteryTw

package module
v0.0.0-...-0849758 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: LGPL-3.0 Imports: 4 Imported by: 0

README

goLotteryTw

台灣彩券歷史紀錄查詢

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lottery38

type Lottery38 struct {
	LotterySession
}

func NewLottery38

func NewLottery38() *Lottery38

func (*Lottery38) GetIdValues

func (l *Lottery38) GetIdValues(id string) url.Values

func (*Lottery38) GetInfo

func (l *Lottery38) GetInfo(s *goquery.Selection) LotteryInfo

func (*Lottery38) GetMonthValues

func (l *Lottery38) GetMonthValues(year string, month string) url.Values

func (*Lottery38) GetUrl

func (l *Lottery38) GetUrl() string

type Lottery39

type Lottery39 struct {
	LotterySession
}

func NewLottery39

func NewLottery39() *Lottery39

func (*Lottery39) GetIdValues

func (l *Lottery39) GetIdValues(id string) url.Values

func (*Lottery39) GetInfo

func (l *Lottery39) GetInfo(s *goquery.Selection) LotteryInfo

func (*Lottery39) GetMonthValues

func (l *Lottery39) GetMonthValues(year string, month string) url.Values

func (*Lottery39) GetUrl

func (l *Lottery39) GetUrl() string

type Lottery49

type Lottery49 struct {
	LotterySession
}

func NewLottery49

func NewLottery49() *Lottery49

func (*Lottery49) GetIdValues

func (l *Lottery49) GetIdValues(id string) url.Values

func (*Lottery49) GetInfo

func (l *Lottery49) GetInfo(s *goquery.Selection) LotteryInfo

func (*Lottery49) GetMonthValues

func (l *Lottery49) GetMonthValues(year string, month string) url.Values

func (*Lottery49) GetUrl

func (l *Lottery49) GetUrl() string

type LotteryInfo

type LotteryInfo struct {
	Id     string
	Date   string
	Balls  []int64
	SBalls int
}

func QueryById

func QueryById(game string, id string) LotteryInfo

func QueryByMonth

func QueryByMonth(game string, year string, month string) []LotteryInfo

func QueryLast

func QueryLast(game string) []LotteryInfo

type LotterySession

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

func (*LotterySession) RefreshForm

func (ls *LotterySession) RefreshForm(doc *goquery.Document)

type LotterySource

type LotterySource interface {
	GetInfo(s *goquery.Selection) LotteryInfo
	GetUrl() string
	GetIdValues(id string) url.Values
	GetMonthValues(year string, month string) url.Values
	RefreshForm(doc *goquery.Document)
}

Jump to

Keyboard shortcuts

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