collects

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MAX_THREAD_NUMBER = 20
View Source
var RN = 100

Functions

func GetCreateTime

func GetCreateTime(accWin8 *postbar.Account, theThread *Thread)

func TryGettingForumPageThreads

func TryGettingForumPageThreads(accWin8 *postbar.Account, forumName string, rn, pn int) []*forum.ForumPageThread

func TryGettingThreadCreateTime

func TryGettingThreadCreateTime(accWin8 *postbar.Account, tid uint64) *time.Time

func Validate

func Validate(accWin8 *postbar.Account, threads []Thread, cutOffs []int64) [][]Thread

threads为升序, cutOffs为升序

Types

type Thread

type Thread struct {
	Title    string
	Tid      uint64
	Author   string
	Abstract []interface{}

	Time string
	// contains filtered or unexported fields
}

func (Thread) GetTime

func (t Thread) GetTime() int64

type ThreadMap

type ThreadMap map[uint64]Thread

func Collect

func Collect(accWin8 *postbar.Account, forum string, _endTime time.Time) ThreadMap

func (ThreadMap) ToSortedSlice

func (theMap ThreadMap) ToSortedSlice() []Thread

type ThreadSliceSorter

type ThreadSliceSorter []Thread

func (ThreadSliceSorter) Len

func (s ThreadSliceSorter) Len() int

func (ThreadSliceSorter) Less

func (s ThreadSliceSorter) Less(i, j int) bool

func (ThreadSliceSorter) Swap

func (s ThreadSliceSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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