Documentation ¶
Index ¶
- Constants
- func CMD() *cobra.Command
- func MakeFullURL(short string) string
- func MakeFullURLs(short []string) []string
- func ParseMain(data string) []string
- func ParseStats(reader io.Reader, info *StatFileInfo, f func(*stats.Record) error) error
- func ParseStatsForFile(reader io.Reader, filename string, f func(*stats.Record) error) error
- type FileIndex
- func (i *FileIndex) Add(url, path string) error
- func (i *FileIndex) Check(url string) bool
- func (i *FileIndex) Files() []string
- func (i *FileIndex) JustAdd(url, path string)
- func (i *FileIndex) Len() int
- func (i *FileIndex) Load() error
- func (i *FileIndex) Save() (err error)
- func (i *FileIndex) Validate() error
- type ListItem
- type StatFileInfo
Constants ¶
View Source
const ( MainPageURL = "http://tenhou.net/sc/raw/" ListURL = "http://tenhou.net/sc/raw/list.cgi" ListOldURL = "http://tenhou.net/sc/raw/list.cgi?old" )
View Source
const (
Location = "./tenhou/stats/"
)
Variables ¶
This section is empty.
Functions ¶
func MakeFullURL ¶
func MakeFullURLs ¶
func ParseMain ¶
ParseMain parses tenhou main page http://tenhou.net/sc/raw/ and returns list of year index archives. Like scraw2017.zip
func ParseStats ¶
Types ¶
type FileIndex ¶
type FileIndex struct { utils.JSONGZFile // contains filtered or unexported fields }
func NewFileIndex ¶
type ListItem ¶
func MustParseList ¶
type StatFileInfo ¶
func ParseStatFileName ¶
func ParseStatFileName(filename string) (*StatFileInfo, error)
Click to show internal directories.
Click to hide internal directories.