MCPcopy Create free account

hub / github.com/EverythingMe/go-disque / functions

Functions85 in github.com/EverythingMe/go-disque

↓ 20 callersMethodClose
Close closes the underlying connection
disque/disque.go:86
↓ 15 callersMethodAdd
Add sents an ADDJOB command to disque, as specified by the AddRequest. Returns the job id or an error
disque/disque.go:61
↓ 12 callersMethodGet
Get gets one job from any of the given queues, or times out if timeout has elapsed without a job being available. Returns a job or an error
disque/disque.go:67
↓ 11 callersMethodDo
Execute the task on the client
tasque/tasque.go:64
↓ 10 callersMethodGet
Get returns a client, or an error if we could not init one
disque/pool.go:168
↓ 9 callersMethodId
()
tasque/tasque.go:76
↓ 7 callersFunctionNewPool
NewPool creates a new client pool, with a given redis dial function, and an initial list of ip:port addresses to try connecting to. You should call Re
disque/pool.go:68
↓ 5 callersMethodSize
()
disque/pool.go:54
↓ 5 callersFunctionscopedLock
(m *sync.Mutex)
disque/pool.go:84
↓ 4 callersFunctionNewChan
NewChan creates a new disque channel objec with a given name, over a disque cluster with the given addrs. If async is true, messages are sent using di
disqchan/disqchan.go:49
↓ 4 callersMethodRefreshNodes
RefreshNodes uses a HELLO call to refresh the node list in the cluster
disque/pool.go:201
↓ 4 callersMethodSendChan
SendChan returns a channel to which objects can be sent
disqchan/disqchan.go:84
↓ 4 callersMethodSet
Set a property in the task
tasque/tasque.go:45
↓ 3 callersMethodAck
Ack sends and ACKJOB command with the given job ids
disque/disque.go:73
↓ 3 callersMethodHandle
Register a task handler in the worker. This shoudl
tasque/worker.go:46
↓ 3 callersMethodRecvChan
RecvChan returns a channel from which received messages can be received. Before it is called, this Chan is not receiving from the queue
disqchan/disqchan.go:99
↓ 3 callersMethodRun
Run starts the worker and makes it request jobs
tasque/worker.go:115
↓ 3 callersMethodRunRefreshLoop
RunRefreshLoop starts a goroutine that periodically refreshes the node list using HELLO
disque/pool.go:219
↓ 3 callersMethodStop
Stop stop the chan's internal send/receive loops
disqchan/disqchan.go:70
↓ 3 callersMethodselectNode
selectNode select a valid node by random. Currently only nodes with priority 1 are selected
disque/pool.go:97
↓ 2 callersMethodDo
Do puts the task in the queue for immediate execution, and set the task's jobId
tasque/client.go:41
↓ 2 callersFunctionFuncHandler
FuncHandler takes a func and its id and converts them into a FuncTaskHandler
tasque/tasque.go:96
↓ 2 callersMethodHello
Hello is a handshake request with the server, returns a description of the cluster state
disque/disque.go:83
↓ 2 callersMethodJobId
JobId The task's jobId
tasque/tasque.go:28
↓ 2 callersFunctionNewClient
Create a new client for the given disque addrs. enqueueTimeout is the amount of time after which we fail
tasque/client.go:20
↓ 2 callersFunctionNewTask
Create a new task with a given id
tasque/tasque.go:37
↓ 2 callersFunctionNewWorker
Create a new worker that runs numGoroutines concurrently, connecting to disque addrs
tasque/worker.go:26
↓ 2 callersMethodQlen
Qlen returns the length of a given queue
disque/disque.go:80
↓ 2 callersMethodUpdateNodes
UpdateNodes explicitly sets the nodes of the pool
disque/pool.go:195
↓ 2 callersFunctionaddArgs
builds ADDJOB args
disque/disque.go:130
↓ 2 callersFunctionqname
(tname string)
tasque/client.go:36
↓ 1 callersMethodAddMulti
AddMulti sends multiple ADDJOB in pipeline
disque/disque.go:64
↓ 1 callersMethodClose
Close closes all pools
disque/pool.go:155
↓ 1 callersMethodDelay
Delay puts the task in the queue for execution after the delay period of time. This also sets the jobId of the task
tasque/client.go:47
↓ 1 callersMethodGetMulti
GetMulti gets <count> jobs from the given queues, or times out if timeout has elapsed without enough jobs being available. Returns a list of jobs or a
disque/disque.go:176
↓ 1 callersMethodHandle
(*Task)
tasque/tasque.go:75
↓ 1 callersFunctionNewCrawlHandler
(persistDir string, addrs ...string)
disqrawl/crawler.go:28
↓ 1 callersMethodcontains
(n Node)
disque/pool.go:17
↓ 1 callersMethodcrawl
(u string)
disqrawl/crawler.go:56
↓ 1 callersFunctioncrawlManager
(nodes []string)
disqrawl/crawler.go:145
↓ 1 callersMethodgetHandler
(t *Task)
tasque/worker.go:59
↓ 1 callersMethodgetPool
getPool returns a redis connection pool for a given address
disque/pool.go:126
↓ 1 callersMethodhandlerLoop
a single worker loop
tasque/worker.go:82
↓ 1 callersMethodmarshal
()
tasque/tasque.go:32
↓ 1 callersMethodreceiveLoop
()
disqchan/disqchan.go:113
↓ 1 callersMethodrunHandler
runHandler safely wraps running a single task in a handler
tasque/worker.go:67
↓ 1 callersMethodseen
(u *url.URL)
disqrawl/crawler.go:41
↓ 1 callersMethodsendLoop
()
disqchan/disqchan.go:167
MethodAck
Ack sends and ACKJOB command with the given job ids
disque/disque.go:221
MethodAdd
Add sents an ADDJOB command to disque, as specified by the AddRequest. Returns the job id or an error
disque/disque.go:101
MethodAddMulti
AddMulti sends multiple ADDJOB in pipeline
disque/disque.go:112
FunctionBenchmarkAdd
(b *testing.B)
disque/disque_test.go:265
MethodClose
Close closes the underlying connection
disque/disque.go:96
MethodDelay
Delay executes the task, delayed for d duration
tasque/tasque.go:69
MethodEnqueue
Enqueue an already existing job by jobId. This can be used for fast retries
disque/disque.go:250
FunctionExample
()
tasque/tasque_test.go:77
FunctionExampleClient
()
disque/disque_test.go:85
FunctionExampleRecv
()
disqchan/disqchan_test.go:68
FunctionExampleSend
()
disqchan/disqchan_test.go:55
MethodFastAck
FastAck sends a FASTACK commadn with the given job ids. See the disque docs about the difference between ACK and FASTACK
disque/disque.go:77
MethodFastAck
FastAck sends a FASTACK commadn with the given job ids. See the disque docs about the difference between ACK and FASTACK
disque/disque.go:233
MethodGet
Get gets one job from any of the given queues, or times out if timeout has elapsed without a job being available. Returns a job or an error
disque/disque.go:161
MethodGetMulti
GetMulti gets <count> jobs from the given queues, or times out if timeout has elapsed without enough jobs being available. Returns a job or an error
disque/disque.go:70
MethodHandle
Handle calls the underlying func to handle the task
tasque/tasque.go:86
MethodHandle
(t *tasque.Task)
disqrawl/crawler.go:120
MethodHello
Hello is a handshake request with the server, returns a description of the cluster state TODO: implement this
disque/disque.go:262
MethodId
Id returns the job id. the underlying id is only settable by the client, so there is only a getter for it
disque/disque.go:27
MethodId
Id returns the id of the handler
tasque/tasque.go:91
MethodId
()
disqrawl/crawler.go:37
MethodIsNull
IsNull checks if a node is empty or not
disque/pool.go:35
MethodName
Name returns the name of the chan
disqchan/disqchan.go:33
MethodQlen
Qlen returns the length of a given queue
disque/disque.go:243
MethodSetRetry
Set the retry timeout. This must be greater than 1. If the worker does not ACK the task in this timeout, disque will try to re-queue it
tasque/tasque.go:58
MethodSetTTL
Set the task TTL - if it will not succeed after this time, disque will give up on it
tasque/tasque.go:51
MethodStop
Stop stops the worker from processing new tasks
tasque/worker.go:109
FunctionTestAddJob
(t *testing.T)
disque/disque_test.go:19
FunctionTestAddMulti
(t *testing.T)
disque/disque_test.go:55
FunctionTestChan
(t *testing.T)
disqchan/disqchan_test.go:9
FunctionTestClient
(t *testing.T)
disque/disque_test.go:208
FunctionTestHello
(t *testing.T)
disque/disque_test.go:149
FunctionTestPool
(t *testing.T)
disque/disque_test.go:122
FunctionTestTasque
(t *testing.T)
tasque/tasque_test.go:26
Functiondial
(addr string)
disqchan/disqchan.go:37
Functiondial
(addr string)
disque/disque_test.go:15
Functionmain
()
disqrawl/crawler.go:173