示例#1
0
func init() {
	appengine_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)
	appengine_internal.RegisterTimeoutErrorCode("taskqueue", dsCode)

	// Transaction registration.
	appengine_internal.RegisterTransactionSetter(setTransaction)
	appengine_internal.RegisterTransactionSetter(func(x *pb.TaskQueueBulkAddRequest, t *dspb.Transaction) {
		for _, req := range x.AddRequest {
			setTransaction(req, t)
		}
	})
}
示例#2
0
func init() {
	appengine_internal.NamespaceMods["datastore_v3"] = namespaceMod
	appengine_internal.RegisterErrorCodeMap("datastore_v3", pb.Error_ErrorCode_name)
	appengine_internal.RegisterTimeoutErrorCode("datastore_v3", int32(pb.Error_TIMEOUT))
}
示例#3
0
文件: log.go 项目: pkdevboxy/appscale
func init() {
	appengine_internal.RegisterErrorCodeMap("logservice", pb.LogServiceError_ErrorCode_name)
}
示例#4
0
func init() {
	appengine_internal.RegisterErrorCodeMap("blobstore", pb.BlobstoreServiceError_ErrorCode_name)
}
示例#5
0
func init() {
	appengine_internal.RegisterErrorCodeMap("datastore_v3", pb.Error_ErrorCode_name)
	appengine_internal.NamespaceMods["datastore_v3"] = namespaceMod
}
示例#6
0
文件: channel.go 项目: yschu7/go_test
func init() {
	if appengine.IsDevAppServer() {
		service = "channel" // dev
	}
	appengine_internal.RegisterErrorCodeMap(service, channel_proto.ChannelServiceError_ErrorCode_name)
}
示例#7
0
func init() {
	appengine_internal.RegisterErrorCodeMap("xmpp", pb.XmppServiceError_ErrorCode_name)
}
示例#8
0
func init() {
	appengine_internal.RegisterErrorCodeMap("urlfetch", pb.URLFetchServiceError_ErrorCode_name)
	appengine_internal.RegisterTimeoutErrorCode("urlfetch", int32(pb.URLFetchServiceError_DEADLINE_EXCEEDED))
}
示例#9
0
func init() {
	appengine_internal.RegisterErrorCodeMap("mail", mail_proto.MailServiceError_ErrorCode_name)
}
示例#10
0
func init() {
	appengine_internal.RegisterErrorCodeMap("images", pb.ImagesServiceError_ErrorCode_name)
}
示例#11
0
func init() {
	appengine_internal.RegisterErrorCodeMap("user", pb.UserServiceError_ErrorCode_name)
}
示例#12
0
func init() {
	appengine_internal.RegisterErrorCodeMap("conversion", conversion_proto.ConversionServiceError_ErrorCode_name)
}
示例#13
0
func init() {
	appengine_internal.RegisterErrorCodeMap("search", pb.SearchServiceError_ErrorCode_name)
	appengine_internal.NamespaceMods["search"] = namespaceMod
}
示例#14
0
文件: runtime.go 项目: LeXa4894/test
func init() {
	appengine_internal.RegisterErrorCodeMap("system", system_proto.SystemServiceError_ErrorCode_name)
}
示例#15
0
func init() {
	appengine_internal.RegisterErrorCodeMap("taskqueue", taskqueue_proto.TaskQueueServiceError_ErrorCode_name)
}
func init() {
	appengine_internal.RegisterErrorCodeMap("memcache", pb.MemcacheServiceError_ErrorCode_name)
}
示例#17
0
文件: socket.go 项目: SiroDiaz/csuf
func init() {
	appengine_internal.RegisterErrorCodeMap("remote_socket", pb.RemoteSocketServiceError_ErrorCode_name)
}
示例#18
0
func init() {
	appengine_internal.RegisterErrorCodeMap("datastore_v3", pb.Error_ErrorCode_name)
}
示例#19
0
func init() {
	appengine_internal.RegisterErrorCodeMap("blobstore", blobpb.BlobstoreServiceError_ErrorCode_name)
	appengine_internal.RegisterErrorCodeMap("file", filepb.FileServiceErrors_ErrorCode_name)
}
示例#20
0
func init() {
	appengine_internal.RegisterErrorCodeMap("urlfetch", pb.URLFetchServiceError_ErrorCode_name)
}
示例#21
0
func init() {
	appengine_internal.RegisterErrorCodeMap("memcache", pb.MemcacheServiceError_ErrorCode_name)
	appengine_internal.NamespaceMods["memcache"] = namespaceMod
}
示例#22
0
func init() {
	appengine_internal.RegisterErrorCodeMap("app_identity_service", pb.AppIdentityServiceError_ErrorCode_name)
	appengine_internal.RegisterErrorCodeMap("modules", modpb.ModulesServiceError_ErrorCode_name)
}
func init() {
	appengine_internal.RegisterErrorCodeMap("channel", channel_proto.ChannelServiceError_ErrorCode_name)
}