scanner

package
v0.0.0-...-67a0ee0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COMMON_YEAR_MONTH_DAYS = []int{0,
	31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}

Functions

func CanViewBackstage

func CanViewBackstage(doc *goquery.Document) bool

func ExtractLogCount

func ExtractLogCount(doc *goquery.Document) (int, error)

func ExtractLogs

func ExtractLogs(doc *goquery.Document, logs []Log, fromIndex, toIndex int) (trueLength bool)

func ListPostLog

func ListPostLog(BDUSS, forumName, svalue string, opType OpType, fromTime, toTime int64, pn int) ([]byte, error)

func TryGettingAndExtractLogs

func TryGettingAndExtractLogs(BDUSS, forumName, svalue string,
	opType OpType, fromTime, toTime int64,
	pn int, logs []Log, trueCount int)

func TryGettingListingPostLogDocument

func TryGettingListingPostLogDocument(BDUSS, forumName, svalue string, opType OpType, fromTime, toTime int64, pn int) *goquery.Document

func TryListingPostLog

func TryListingPostLog(BDUSS, forumName, svalue string, opType OpType, fromTime, toTime int64, pn int) []byte

Types

type DayData

type DayData struct {
	Time int64
	Logs []Log
}

func Scan

func Scan(BDUSS, forumName string, beginTime, endTime int64, rescan bool) []DayData

type Log

type Log struct {
	Author   string
	PostTime struct {
		Month, Day, Hour, Minute int
	}
	Title       string
	IsReply     bool
	Text        string
	MediaHtml   string
	TID         int
	PID         int
	OperateType OpType
	Operator    string
	OperateTime struct {
		Year, Month, Day, Hour, Minute int
	}
}

type MonthDatas

type MonthDatas struct {
	Datas []DayData
	// contains filtered or unexported fields
}

type OpType

type OpType int
const (
	OpType_None       OpType = 0
	OpType_Delete     OpType = 12
	OpType_Recover    OpType = 13
	OpType_AddGood    OpType = 17
	OpType_CancelGood OpType = 18
	OpType_AddTop     OpType = 25
	OpType_CancelTop  OpType = 26
)

Jump to

Keyboard shortcuts

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