MCPcopy Create free account
hub / github.com/golang/appengine / init

Function init

taskqueue/taskqueue.go:527–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525}
526
527func init() {
528 internal.RegisterErrorCodeMap("taskqueue", pb.TaskQueueServiceError_ErrorCode_name)
529
530 // Datastore error codes are shifted by DATASTORE_ERROR when presented through taskqueue.
531 dsCode := int32(pb.TaskQueueServiceError_DATASTORE_ERROR) + int32(dspb.Error_TIMEOUT)
532 internal.RegisterTimeoutErrorCode("taskqueue", dsCode)
533
534 // Transaction registration.
535 internal.RegisterTransactionSetter(setTransaction)
536 internal.RegisterTransactionSetter(func(x *pb.TaskQueueBulkAddRequest, t *dspb.Transaction) {
537 for _, req := range x.AddRequest {
538 setTransaction(req, t)
539 }
540 })
541}

Callers

nothing calls this directly

Calls 4

RegisterErrorCodeMapFunction · 0.92
RegisterTimeoutErrorCodeFunction · 0.92
setTransactionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…