func init() { internal.RegisterErrorCodeMap("taskqueue", pb.TaskQueueServiceError_ErrorCode_name) // Datastore error codes are shifted by DATASTORE_ERROR when presented through taskqueue. dsCode := int32(pb.TaskQueueServiceError_DATASTORE_ERROR) + int32(dspb.Error_TIMEOUT) internal.RegisterTimeoutErrorCode("taskqueue", dsCode) // Transaction registration. internal.RegisterTransactionSetter(setTransaction) internal.RegisterTransactionSetter(func(x *pb.TaskQueueBulkAddRequest, t *dspb.Transaction) { for _, req := range x.AddRequest { setTransaction(req, t) } }) }
func init() { internal.RegisterErrorCodeMap("search", pb.SearchServiceError_ErrorCode_name) internal.NamespaceMods["search"] = namespaceMod }
func init() { if appengine.IsDevAppServer() { service = "channel" // dev } internal.RegisterErrorCodeMap("channel", pb.ChannelServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("memcache", pb.MemcacheServiceError_ErrorCode_name) internal.NamespaceMods["memcache"] = namespaceMod }
func init() { internal.RegisterErrorCodeMap("system", pb.SystemServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("user", pb.UserServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("images", pb.ImagesServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("mail", pb.MailServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("remote_socket", pb.RemoteSocketServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("xmpp", pb.XmppServiceError_ErrorCode_name) }
func init() { internal.NamespaceMods["datastore_v3"] = namespaceMod internal.RegisterErrorCodeMap("datastore_v3", pb.Error_ErrorCode_name) internal.RegisterTimeoutErrorCode("datastore_v3", int32(pb.Error_TIMEOUT)) }
func init() { internal.RegisterErrorCodeMap("logservice", pb.LogServiceError_ErrorCode_name) }
func init() { internal.RegisterErrorCodeMap("urlfetch", pb.URLFetchServiceError_ErrorCode_name) internal.RegisterTimeoutErrorCode("urlfetch", int32(pb.URLFetchServiceError_DEADLINE_EXCEEDED)) }
func init() { internal.RegisterErrorCodeMap("app_identity_service", pb.AppIdentityServiceError_ErrorCode_name) internal.RegisterErrorCodeMap("modules", modpb.ModulesServiceError_ErrorCode_name) }