Documentation ¶
Index ¶
- Variables
- func FetchAndSaveFollowers(s *sail.Seed, sck *sail.SharedCookie, db sea.DbOp, sop sea.SeedOp, ...) (cnt int, err error)
- func FetchFollowers(s *sail.Seed, sck *sail.SharedCookie, out chan map[string]string) (err error)
- func FetchWorker(name int, in chan sail.Seed, sck *sail.SharedCookie, ...) (err error)
- func GetAllUsers(s *sail.Seed)
- func Manager(s *sail.Seed, sck *sail.SharedCookie, db sea.DbOp, sop sea.SeedOp, n int)
- func SaveOneFollower(db sea.DbOp, sop sea.SeedOp, u *map[string]string) (saved bool, err error)
- func SaveWorker(name int, in chan map[string]string, db sea.DbOp, sop sea.SeedOp)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefCookie = sail.NewSharedCookie("http://xueqiu.com")
View Source
var DefSeed = sail.Seed{
FixedFormater: "http://xueqiu.com/friendships/followers.json?uid=%v&pageNo=%v&size=%v",
ID: "1234461197",
PageNo: 1,
PageSize: 1000,
Interval: 100,
}
Functions ¶
func FetchAndSaveFollowers ¶
func FetchAndSaveFollowers(s *sail.Seed, sck *sail.SharedCookie, db sea.DbOp, sop sea.SeedOp, fin chan int) (cnt int, err error)
get and save followers of user
func FetchFollowers ¶
fetch all followers of the seed
func FetchWorker ¶
func FetchWorker(name int, in chan sail.Seed, sck *sail.SharedCookie, out chan map[string]string) (err error)
fetch all followers of the seed
func GetAllUsers ¶
func SaveOneFollower ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.