_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c179000
// Sender yields the GossipSender for the named channel. // It will use the factory function if no sender yet exists.
c179001
// Flush flushes all managed senders. Used for testing.
c179002
// Find the path to package main by looking at the root Caller.
c179003
// Create creates a channel and returns a token for use by the client. // The clientID is an application-provided string used to identify the client.
c179004
// Send sends a message on the channel associated with clientID.
c179005
// SendJSON is a helper function that sends a JSON-encoded value // on the channel associated with clientID.
c179006
// remapError fixes any APIError referencing "xmpp" into one referencing "channel".
c179007
// NamespacedContext wraps a Context to support namespaces.
c179008
// protoToItem converts a protocol buffer item to a Go struct.
c179009
// If err is an appengine.MultiError, return its first element. Otherwise, return err.
c179010
// Get gets the item for the given key. ErrCacheMiss is returned for a memcache // cache miss. The key must be at most 250 bytes in length.
c179011
// GetMulti is a batch version of Get. The returned map from keys to items may // have fewer elements than the input slice, due to memcache cache misses. // Each key must be at most 250 bytes in length.
c179012
// Delete deletes the item for the given key. // ErrCacheMiss is returned if the specified item can not be found. // The key must be at most 250 bytes in length.
c179013
// DeleteMulti is a batch version of Delete. // If any keys cannot be found, an appengine.MultiError is returned. // Each key must be at most 250 bytes in length.
c179014
// Increment atomically increments the decimal value in the given key // by delta and returns the new value. The value must fit in a uint64. // Overflow wraps around, and underflow is capped to zero. The // provided delta may be negative. If the key doesn't exist in // memcache, the provided initial value is used to at...
c179015
// IncrementExisting works like Increment but assumes that the key // already exists in memcache and doesn't take an initial value. // IncrementExisting can save work if calculating the initial value is // expensive. // An error is returned if the specified item can not be found.
c179016
// set sets the given items using the given conflict resolution policy. // appengine.MultiError may be returned.
c179017
// Get gets the item for the given key and decodes the obtained value into v. // ErrCacheMiss is returned for a memcache cache miss. // The key must be at most 250 bytes in length.
c179018
// Stats retrieves the current memcache statistics.
c179019
// Flush flushes all items from memcache.
c179020
// RunInBackground runs f in a background goroutine in this process. // f is provided a context that may outlast the context provided to RunInBackground. // This is only valid to invoke from a service set to basic or manual scaling.
c179021
// List returns the names of modules belonging to this application.
c179022
// SetNumInstances sets the number of instances of the given module.version to the // specified value. If either module or version are the empty string it means the // default.
c179023
// Versions returns the names of the versions that belong to the specified module. // If module is the empty string, it means the default module.
c179024
// DefaultVersion returns the default version of the specified module. // If module is the empty string, it means the default module.
c179025
// Start starts the specified version of the specified module. // If either module or version are the empty string, it means the default.
c179026
// Stop stops the specified version of the specified module. // If either module or version are the empty string, it means the default.
c179027
// Ancestor returns a derivative query with an ancestor filter. // The ancestor should not be nil.
c179028
// EventualConsistency returns a derivative query that returns eventually // consistent results. // It only has an effect on ancestor queries.
c179029
// Project returns a derivative query that yields only the given fields. It // cannot be used with KeysOnly.
c179030
// Distinct returns a derivative query that yields de-duplicated entities with // respect to the set of projected fields. It is only used for projection // queries. Distinct cannot be used with DistinctOn.
c179031
// DistinctOn returns a derivative query that yields de-duplicated entities with // respect to the set of the specified fields. It is only used for projection // queries. The field list should be a subset of the projected field list. // DistinctOn cannot be used with Distinct.
c179032
// KeysOnly returns a derivative query that yields only keys, not keys and // entities. It cannot be used with projection queries.
c179033
// Limit returns a derivative query that has a limit on the number of results // returned. A negative value means unlimited.
c179034
// Offset returns a derivative query that has an offset of how many keys to // skip over before returning results. A negative value is invalid.
c179035
// BatchSize returns a derivative query to fetch the supplied number of results // at once. This value should be greater than zero, and equal to or less than // the Limit.
c179036
// Start returns a derivative query with the given start point.
c179037
// End returns a derivative query with the given end point.
c179038
// Count returns the number of results for the query. // // The running time and number of API calls made by Count scale linearly with // the sum of the query's offset and limit. Unless the result count is // expected to be small, it is best to specify a limit; otherwise Count will // continue until it finishes countin...
c179039
// Run runs the query in the given context.
c179040
// Next returns the key of the next result. When there are no more results, // Done is returned as the error. // // If the query is not keys only and dst is non-nil, it also loads the entity // stored for that key into the struct pointer or PropertyLoadSaver dst, with // the same semantics and possible errors as for th...
c179041
// Cursor returns a cursor for the iterator's current location.
c179042
// String returns a base-64 string representation of a cursor.
c179043
// Decode decodes a cursor from its base-64 string representation.
c179044
// saveEntity saves an EntityProto into a PropertyLoadSaver or struct pointer.
c179045
// typeof returns the type of the given name, which may be of // the form "x" or "p.X".
c179046
// dot returns the type of "typ.name", making its decision // using the type information in cfg.
c179047
// joinFunc is the inverse of splitFunc.
c179048
// validPropertyName returns whether name consists of one or more valid Go // identifiers joined by ".".
c179049
// getStructCodec returns the structCodec for the given struct type.
c179050
// LoadStruct loads the properties from p to dst. // dst must be a struct pointer.
c179051
// SaveStruct returns the properties from src as a slice of Properties. // src must be a struct pointer.
c179052
// ServingURL returns a URL that will serve an image from Blobstore.
c179053
// DeleteServingURL deletes the serving URL for an image.
c179054
// CurrentOAuth returns the user associated with the OAuth consumer making this // request. If the OAuth consumer did not make a valid OAuth request, or the // scopes is non-empty and the current user does not have at least one of the // scopes, this method will return an error.
c179055
// OAuthConsumerKey returns the OAuth consumer key provided with the current // request. This method will return an error if the OAuth request was invalid.
c179056
// String returns a displayable name for the user.
c179057
// LoginURLFederated is like LoginURL but accepts a user's OpenID identifier.
c179058
// ctx may be nil.
c179059
// NewClient returns a client for the given host. All communication will // be performed over SSL unless the host is localhost.
c179060
// NewContext returns a copy of parent that will cause App Engine API // calls to be sent to the client's remote host.
c179061
// Debugf formats its arguments according to the format, analogous to fmt.Printf, // and records the text as a log message at Debug level. The message will be associated // with the request linked with the provided context.
c179062
// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.
c179063
// NewPOSTTask creates a Task that will POST to a path with the given form data.
c179064
// ParseRequestHeaders parses the special HTTP request headers available to push // task request handlers. This function silently ignores values of the wrong // format.
c179065
// Add adds the task to a named queue. // An empty queue name means that the default queue will be used. // Add returns an equivalent Task with defaults filled in, including setting // the task's Name field to the chosen name if the original was empty.
c179066
// AddMulti adds multiple tasks to a named queue. // An empty queue name means that the default queue will be used. // AddMulti returns a slice of equivalent tasks with defaults filled in, including setting // each task's Name field to the chosen name if the original was empty. // If a given task is badly formed or cou...
c179067
// Delete deletes a task from a named queue.
c179068
// DeleteMulti deletes multiple tasks from a named queue. // If a given task could not be deleted, an appengine.MultiError is returned. // Each task is deleted independently; one may fail to delete while the others // are sucessfully deleted.
c179069
// Lease leases tasks from a queue. // leaseTime is in seconds. // The number of tasks fetched will be at most maxTasks.
c179070
// LeaseByTag leases tasks from a queue, grouped by tag. // If tag is empty, then the returned tasks are grouped by the tag of the task with earliest ETA. // leaseTime is in seconds. // The number of tasks fetched will be at most maxTasks.
c179071
// Purge removes all tasks from a queue.
c179072
// ModifyLease modifies the lease of a task. // Used to request more processing time, or to abandon processing. // leaseTime is in seconds and must not be negative.
c179073
// QueueStats retrieves statistics about queues.
c179074
// IsTimeoutError reports whether err is a timeout error.
c179075
// Task creates a Task that will invoke the function. // Its parameters may be tweaked before adding it to a queue. // Users should not modify the Path or Payload fields of the returned Task.
c179076
// Request returns the special task-queue HTTP request headers for the current // task queue handler. Returns an error if called from outside a delay.Func.
c179077
// WithContext returns a copy of the parent context // and associates it with an in-flight HTTP request. // This function is cheap.
c179078
// WithAPICallFunc returns a copy of the parent context // that will cause API calls to invoke f instead of their normal operation. // // This is intended for advanced users only.
c179079
// APICall performs an API call. // // This is not intended for general use; it is exported for use in conjunction // with WithAPICallFunc.
c179080
// ModuleHostname returns a hostname of a module instance. // If module is the empty string, it refers to the module of the current instance. // If version is empty, it refers to the version of the current instance if valid, // or the default version of the module of the current instance. // If instance is empty, Modul...
c179081
// AccessToken generates an OAuth2 access token for the specified scopes on // behalf of service account of this application. This token will expire after // the returned time.
c179082
// PublicCertificates retrieves the public certificates for the app. // They can be used to verify a signature returned by SignBytes.
c179083
// ServiceAccount returns a string representing the service account name, in // the form of an email address (typically app_id@appspot.gserviceaccount.com).
c179084
// SignBytes signs bytes using a private key unique to your application.
c179085
// fetch fetches readBufferSize bytes starting at the given offset. On success, // the data is saved as r.buf.
c179086
// seek seeks to the given offset with an effective whence equal to SEEK_SET. // It discards the read buffer if the invariant cannot be maintained.
c179087
// multiKeyToProto is a batch version of keyToProto.
c179088
// It's unfortunate that the two semantically equivalent concepts pb.Reference // and pb.PropertyValue_ReferenceValue aren't the same type. For example, the // two have different protobuf field numbers. // referenceValueToKey is the same as protoToKey except the input is a // PropertyValue_ReferenceValue instead of a R...
c179089
// keyToReferenceValue is the same as keyToProto except the output is a // PropertyValue_ReferenceValue instead of a Reference.
c179090
// Put saves the entity src into the datastore with key k. src must be a struct // pointer or implement PropertyLoadSaver; if a struct pointer then any // unexported fields of that struct will be skipped. If k is an incomplete key, // the returned key will be a unique key generated by the datastore.
c179091
// PutMulti is a batch version of Put. // // src must satisfy the same conditions as the dst argument to GetMulti.
c179092
// deploy calls the provided command to deploy the app from the temporary directory.
c179093
// Next returns the next log record,
c179094
// protoToAppLogs takes as input an array of pointers to LogLines, the internal // Protocol Buffer representation of a single application-level log, // and converts it to an array of AppLogs, the external representation // of an application-level log.
c179095
// protoToRecord converts a RequestLog, the internal Protocol Buffer // representation of a single request-level log, to a Record, its // corresponding external representation.
c179096
// Run starts a query for log records, which contain request and application // level log information.
c179097
// run takes the query Result produced by a call to Run and updates it with // more Records. The updated Result contains a new set of logs as well as an // offset to where more logs can be found. We also convert the items in the // response from their internal representations to external versions of the // same structs...
c179098
// Current returns the currently logged-in user, // or nil if the user is not signed in.
c179099
// IsAdmin returns true if the current user is signed in and // is currently registered as an administrator of the application.