User

package module
v0.0.0-...-5ddd87b Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2016 License: MIT Imports: 4 Imported by: 0

README

User

Documentation

Index

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

func FetchFollowers(s *sail.Seed, sck *sail.SharedCookie, out chan map[string]string) (err error)

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 GetAllUsers(s *sail.Seed)

func Manager

func Manager(s *sail.Seed, sck *sail.SharedCookie, db sea.DbOp, sop sea.SeedOp, n int)

func SaveOneFollower

func SaveOneFollower(db sea.DbOp, sop sea.SeedOp, u *map[string]string) (saved bool, err error)

func SaveWorker

func SaveWorker(name int, in chan map[string]string, db sea.DbOp, sop sea.SeedOp)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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