_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c179000
test
// Sender yields the GossipSender for the named channel. // It will use the factory function if no sender yet exists.
{ "resource": "" }
c179001
test
// Flush flushes all managed senders. Used for testing.
{ "resource": "" }
c179002
test
// Find the path to package main by looking at the root Caller.
{ "resource": "" }
c179003
test
// 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.
{ "resource": "" }
c179004
test
// Send sends a message on the channel associated with clientID.
{ "resource": "" }
c179005
test
// SendJSON is a helper function that sends a JSON-encoded value // on the channel associated with clientID.
{ "resource": "" }
c179006
test
// remapError fixes any APIError referencing "xmpp" into one referencing "channel".
{ "resource": "" }
c179007
test
// NamespacedContext wraps a Context to support namespaces.
{ "resource": "" }
c179008
test
// protoToItem converts a protocol buffer item to a Go struct.
{ "resource": "" }
c179009
test
// If err is an appengine.MultiError, return its first element. Otherwise, return err.
{ "resource": "" }
c179010
test
// 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.
{ "resource": "" }
c179011
test
// 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.
{ "resource": "" }
c179012
test
// 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.
{ "resource": "" }
c179013
test
// 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.
{ "resource": "" }
c179014
test
// 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...
{ "resource": "" }
c179015
test
// 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.
{ "resource": "" }
c179016
test
// set sets the given items using the given conflict resolution policy. // appengine.MultiError may be returned.
{ "resource": "" }
c179017
test
// 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.
{ "resource": "" }
c179018
test
// Stats retrieves the current memcache statistics.
{ "resource": "" }
c179019
test
// Flush flushes all items from memcache.
{ "resource": "" }
c179020
test
// 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.
{ "resource": "" }
c179021
test
// List returns the names of modules belonging to this application.
{ "resource": "" }
c179022
test
// 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.
{ "resource": "" }
c179023
test
// Versions returns the names of the versions that belong to the specified module. // If module is the empty string, it means the default module.
{ "resource": "" }
c179024
test
// DefaultVersion returns the default version of the specified module. // If module is the empty string, it means the default module.
{ "resource": "" }
c179025
test
// Start starts the specified version of the specified module. // If either module or version are the empty string, it means the default.
{ "resource": "" }
c179026
test
// Stop stops the specified version of the specified module. // If either module or version are the empty string, it means the default.
{ "resource": "" }
c179027
test
// Ancestor returns a derivative query with an ancestor filter. // The ancestor should not be nil.
{ "resource": "" }
c179028
test
// EventualConsistency returns a derivative query that returns eventually // consistent results. // It only has an effect on ancestor queries.
{ "resource": "" }
c179029
test
// Project returns a derivative query that yields only the given fields. It // cannot be used with KeysOnly.
{ "resource": "" }
c179030
test
// 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.
{ "resource": "" }
c179031
test
// 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.
{ "resource": "" }
c179032
test
// KeysOnly returns a derivative query that yields only keys, not keys and // entities. It cannot be used with projection queries.
{ "resource": "" }
c179033
test
// Limit returns a derivative query that has a limit on the number of results // returned. A negative value means unlimited.
{ "resource": "" }
c179034
test
// Offset returns a derivative query that has an offset of how many keys to // skip over before returning results. A negative value is invalid.
{ "resource": "" }
c179035
test
// 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.
{ "resource": "" }
c179036
test
// Start returns a derivative query with the given start point.
{ "resource": "" }
c179037
test
// End returns a derivative query with the given end point.
{ "resource": "" }
c179038
test
// 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...
{ "resource": "" }
c179039
test
// Run runs the query in the given context.
{ "resource": "" }
c179040
test
// 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...
{ "resource": "" }
c179041
test
// Cursor returns a cursor for the iterator's current location.
{ "resource": "" }
c179042
test
// String returns a base-64 string representation of a cursor.
{ "resource": "" }
c179043
test
// Decode decodes a cursor from its base-64 string representation.
{ "resource": "" }
c179044
test
// saveEntity saves an EntityProto into a PropertyLoadSaver or struct pointer.
{ "resource": "" }
c179045
test
// typeof returns the type of the given name, which may be of // the form "x" or "p.X".
{ "resource": "" }
c179046
test
// dot returns the type of "typ.name", making its decision // using the type information in cfg.
{ "resource": "" }
c179047
test
// joinFunc is the inverse of splitFunc.
{ "resource": "" }
c179048
test
// validPropertyName returns whether name consists of one or more valid Go // identifiers joined by ".".
{ "resource": "" }
c179049
test
// getStructCodec returns the structCodec for the given struct type.
{ "resource": "" }
c179050
test
// LoadStruct loads the properties from p to dst. // dst must be a struct pointer.
{ "resource": "" }
c179051
test
// SaveStruct returns the properties from src as a slice of Properties. // src must be a struct pointer.
{ "resource": "" }
c179052
test
// ServingURL returns a URL that will serve an image from Blobstore.
{ "resource": "" }
c179053
test
// DeleteServingURL deletes the serving URL for an image.
{ "resource": "" }
c179054
test
// 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.
{ "resource": "" }
c179055
test
// OAuthConsumerKey returns the OAuth consumer key provided with the current // request. This method will return an error if the OAuth request was invalid.
{ "resource": "" }
c179056
test
// String returns a displayable name for the user.
{ "resource": "" }
c179057
test
// LoginURLFederated is like LoginURL but accepts a user's OpenID identifier.
{ "resource": "" }
c179058
test
// ctx may be nil.
{ "resource": "" }
c179059
test
// NewClient returns a client for the given host. All communication will // be performed over SSL unless the host is localhost.
{ "resource": "" }
c179060
test
// NewContext returns a copy of parent that will cause App Engine API // calls to be sent to the client's remote host.
{ "resource": "" }
c179061
test
// 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.
{ "resource": "" }
c179062
test
// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.
{ "resource": "" }
c179063
test
// NewPOSTTask creates a Task that will POST to a path with the given form data.
{ "resource": "" }
c179064
test
// ParseRequestHeaders parses the special HTTP request headers available to push // task request handlers. This function silently ignores values of the wrong // format.
{ "resource": "" }
c179065
test
// 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.
{ "resource": "" }
c179066
test
// 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...
{ "resource": "" }
c179067
test
// Delete deletes a task from a named queue.
{ "resource": "" }
c179068
test
// 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.
{ "resource": "" }
c179069
test
// Lease leases tasks from a queue. // leaseTime is in seconds. // The number of tasks fetched will be at most maxTasks.
{ "resource": "" }
c179070
test
// 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.
{ "resource": "" }
c179071
test
// Purge removes all tasks from a queue.
{ "resource": "" }
c179072
test
// 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.
{ "resource": "" }
c179073
test
// QueueStats retrieves statistics about queues.
{ "resource": "" }
c179074
test
// IsTimeoutError reports whether err is a timeout error.
{ "resource": "" }
c179075
test
// 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.
{ "resource": "" }
c179076
test
// 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.
{ "resource": "" }
c179077
test
// WithContext returns a copy of the parent context // and associates it with an in-flight HTTP request. // This function is cheap.
{ "resource": "" }
c179078
test
// 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.
{ "resource": "" }
c179079
test
// APICall performs an API call. // // This is not intended for general use; it is exported for use in conjunction // with WithAPICallFunc.
{ "resource": "" }
c179080
test
// 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...
{ "resource": "" }
c179081
test
// 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.
{ "resource": "" }
c179082
test
// PublicCertificates retrieves the public certificates for the app. // They can be used to verify a signature returned by SignBytes.
{ "resource": "" }
c179083
test
// ServiceAccount returns a string representing the service account name, in // the form of an email address (typically app_id@appspot.gserviceaccount.com).
{ "resource": "" }
c179084
test
// SignBytes signs bytes using a private key unique to your application.
{ "resource": "" }
c179085
test
// fetch fetches readBufferSize bytes starting at the given offset. On success, // the data is saved as r.buf.
{ "resource": "" }
c179086
test
// 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.
{ "resource": "" }
c179087
test
// multiKeyToProto is a batch version of keyToProto.
{ "resource": "" }
c179088
test
// 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...
{ "resource": "" }
c179089
test
// keyToReferenceValue is the same as keyToProto except the output is a // PropertyValue_ReferenceValue instead of a Reference.
{ "resource": "" }
c179090
test
// 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.
{ "resource": "" }
c179091
test
// PutMulti is a batch version of Put. // // src must satisfy the same conditions as the dst argument to GetMulti.
{ "resource": "" }
c179092
test
// deploy calls the provided command to deploy the app from the temporary directory.
{ "resource": "" }
c179093
test
// Next returns the next log record,
{ "resource": "" }
c179094
test
// 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.
{ "resource": "" }
c179095
test
// protoToRecord converts a RequestLog, the internal Protocol Buffer // representation of a single request-level log, to a Record, its // corresponding external representation.
{ "resource": "" }
c179096
test
// Run starts a query for log records, which contain request and application // level log information.
{ "resource": "" }
c179097
test
// 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...
{ "resource": "" }
c179098
test
// Current returns the currently logged-in user, // or nil if the user is not signed in.
{ "resource": "" }
c179099
test
// IsAdmin returns true if the current user is signed in and // is currently registered as an administrator of the application.
{ "resource": "" }