Documentation ¶
Index ¶
- Constants
- Variables
- func EnsureYear(tid int) int
- func FromGBK(src string) (dst string)
- func INIT(_重试次数 int, _最长允许响应时间 time.Duration, c, d, e int)
- func ListPostLog_op(BDUSS, word, svalue string, op_type OPtype, begin, end *time.Time, pn int) (string, error)
- func StringOpType(op_type OPtype) string
- func StringPostType(posttype int) string
- func StringSliceFromGBK(src []string) (dst []string)
- func StringSliceToGBK(src []string) (dst []string)
- func ToGBK(src string) (dst string)
- func UrlQueryEscape(s string) string
- func WriteNewFile(fn, c string)
- type Account
- type Data
- type OldPosts
- type Post
- type Recovered
- type SameAccounts
- type SameThread
- type SameThreads
- type SortedData
Constants ¶
View Source
const ( TheTidOfTheFirstPostOf2012 = 1347023954 TheTidOfTheFirstPostOf2013 = 2076654371 TheTidOfTheFirstPostOf2014 = 2790164985 )
View Source
const Version = "1.6.2"
Variables ¶
View Source
var SpeedClass = []time.Duration{ time.Minute * 1, time.Minute * 2, time.Minute * 3, time.Minute * 4, time.Minute * 5, time.Minute * 6, time.Minute * 7, time.Minute * 8, time.Minute * 9, time.Minute * 10, time.Minute * 12, time.Minute * 15, time.Minute * 18, time.Minute * 20, time.Minute * 25, time.Minute * 30, time.Minute * 40, time.Minute * 50, time.Hour * 1, time.Minute * 90, time.Hour * 2, time.Minute * 150, time.Hour * 3, time.Hour * 4, time.Hour * 5, time.Hour * 6, time.Hour * 7, time.Hour * 8, time.Hour * 9, time.Hour * 10, time.Hour * 12, time.Hour * 15, time.Hour * 18, time.Hour * 21, time.Hour * 24 * 1, time.Hour * 24 * 2, time.Hour * 24 * 3, time.Hour * 24 * 5, time.Hour * 24 * 8, time.Hour * 24 * 10, time.Hour * 24 * 15, time.Hour * 24 * 20, time.Hour * 24 * 25, time.Hour * 24 * 30, }
View Source
var SpeedClassString = []string{
"1分钟",
"2分钟",
"3分钟",
"4分钟",
"5分钟",
"6分钟",
"7分钟",
"8分钟",
"9分钟",
"10分钟",
"12分钟",
"15分钟",
"18分钟",
"20分钟",
"25分钟",
"30分钟",
"40分钟",
"50分钟",
"1小时",
"1.5小时",
"2小时",
"2.5小时",
"3小时",
"4小时",
"5小时",
"6小时",
"7小时",
"8小时",
"9小时",
"10小时",
"12小时",
"15小时",
"18小时",
"21小时",
"1天",
"2天",
"3天",
"5天",
"8天",
"10天",
"15天",
"20天",
"25天",
"30天",
}
Functions ¶
func EnsureYear ¶
func ListPostLog_op ¶
func StringOpType ¶
func StringOpType(op_type OPtype) string
func StringPostType ¶
func StringSliceFromGBK ¶
func StringSliceToGBK ¶
func UrlQueryEscape ¶
func WriteNewFile ¶
func WriteNewFile(fn, c string)
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
type orzorzorzA struct { Tid int Ptr *PostLog }
type orzorzorzB struct { Un string Ptr *PostLog }
type orzorzorzC struct { Ptr *PostLog Interval time.Duration }
type Data ¶
type SameAccounts ¶
type SameAccounts [][]*PostLog
func (SameAccounts) Len ¶
func (t SameAccounts) Len() int
func (SameAccounts) Less ¶
func (t SameAccounts) Less(i, j int) bool
func (SameAccounts) Swap ¶
func (t SameAccounts) Swap(i, j int)
type SameThread ¶
type SameThreads ¶
type SameThreads []SameThread
func (SameThreads) Len ¶
func (t SameThreads) Len() int
func (SameThreads) Less ¶
func (t SameThreads) Less(i, j int) bool
func (SameThreads) Swap ¶
func (t SameThreads) Swap(i, j int)
type SortedData ¶
type SortedData struct { Bawu_un string ThreadCount int PostCount int SameThreads SameThreads SameAccounts SameAccounts OldPosts OldPosts Distribution []int //以小时为单位 Speed []int RecoveredThreads []Recovered RecoveredPosts []Recovered }
func (data *Data) AddCount(posttype int) { log("AddCount:进入") if posttype == 主题 { data.ChThreadCount <- 1 } else { data.ChPostCount <- 1 } log("AddCount:退出")
}
func (data *Data) AddSameThread(tid int, pl *PostLog) {
data.ChSameThread <- orzorzorzA{tid, pl} }
func (data *Data) AddSameAccount(un string, pl *PostLog) {
data.ChSameAccount <- orzorzorzB{un, pl} }
func (data *Data) AddOldPosts(pl *PostLog, t time.Duration) { log2("收到") data.ChOldPosts <- orzorzorzC{pl, t} }
func SortData ¶
func SortData(data *Data) *SortedData
Click to show internal directories.
Click to hide internal directories.