MCPcopy Index your code
hub / github.com/poundifdef/smoothmq / getQueue

Method getQueue

queue/sqlite/sqlite.go:264–271  ·  view source on GitHub ↗
(tenantId int64, queueName string)

Source from the content-addressed store, hash-verified

262}
263
264func (q *SQLiteQueue) getQueue(tenantId int64, queueName string) (*Queue, error) {
265 rc := &Queue{}
266 res := q.DBG.Where("tenant_id = ? AND name = ?", tenantId, queueName).First(rc)
267 if res.RowsAffected != 1 {
268 return nil, errors.New("Queue not found")
269 }
270 return rc, res.Error
271}
272
273func (q *SQLiteQueue) Enqueue(tenantId int64, queueName string, message string, kv map[string]string, delay int) (int64, error) {
274 messageSnow := q.snow.Generate()

Callers 9

UpdateQueueMethod · 0.95
GetQueueMethod · 0.95
DeleteQueueMethod · 0.95
EnqueueMethod · 0.95
DequeueMethod · 0.95
PeekMethod · 0.95
StatsMethod · 0.95
FilterMethod · 0.95
DeleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected