_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c179100 | // isErrFieldMismatch returns whether err is a datastore.ErrFieldMismatch.
//
// The blobstore stores blob metadata in the datastore. When loading that
// metadata, it may contain fields that we don't care about. datastore.Get will
// return datastore.ErrFieldMismatch in that case, so we ignore that specific
// error. | |
c179101 | // Stat returns the BlobInfo for a provided blobKey. If no blob was found for
// that key, Stat returns datastore.ErrNoSuchEntity. | |
c179102 | // Send sets the headers on response to instruct App Engine to send a blob as
// the response body. This is more efficient than reading and writing it out
// manually and isn't subject to normal response size limits. | |
c179103 | // UploadURL creates an upload URL for the form that the user will
// fill out, passing the application path to load when the POST of the
// form is completed. These URLs expire and should not be reused. The
// opts parameter may be nil. | |
c179104 | // Delete deletes a blob. | |
c179105 | // DeleteMulti deletes multiple blobs. | |
c179106 | // NewReader returns a reader for a blob. It always succeeds; if the blob does
// not exist then an error will be reported upon first read. | |
c179107 | // Handle arranges for f to be called for incoming XMPP messages.
// Only messages of type "chat" or "normal" will be handled. | |
c179108 | // Send sends a message.
// If any failures occur with specific recipients, the error will be an appengine.MultiError. | |
c179109 | // Invite sends an invitation. If the from address is an empty string
// the default (yourapp@appspot.com/bot) will be used. | |
c179110 | // Send sends a presence update. | |
c179111 | // GetPresence retrieves a user's presence.
// If the from address is an empty string the default
// (yourapp@appspot.com/bot) will be used.
// Possible return values are "", "away", "dnd", "chat", "xa".
// ErrPresenceUnavailable is returned if the presence is unavailable. | |
c179112 | // GetPresenceMulti retrieves multiple users' presence.
// If the from address is an empty string the default
// (yourapp@appspot.com/bot) will be used.
// Possible return values are "", "away", "dnd", "chat", "xa".
// If any presence is unavailable, an appengine.MultiError is returned | |
c179113 | // Namespaces returns all the datastore namespaces. | |
c179114 | // Kinds returns the names of all the kinds in the current namespace. | |
c179115 | // RunInTransaction runs f in a transaction. It calls f with a transaction
// context tc that f should use for all App Engine operations.
//
// If f returns nil, RunInTransaction attempts to commit the transaction,
// returning nil if it succeeds. If the commit fails due to a conflicting
// transaction, RunInTransactio... | |
c179116 | // imports returns true if f imports path. | |
c179117 | // importSpec returns the import spec if f imports path,
// or nil otherwise. | |
c179118 | // declImports reports whether gen contains an import of path. | |
c179119 | // isPkgDot returns true if t is the expression "pkg.name"
// where pkg is an imported identifier. | |
c179120 | // isTopName returns true if n is a top-level unresolved identifier with the given name. | |
c179121 | // isName returns true if n is an identifier with the given name. | |
c179122 | // isCall returns true if t is a call to pkg.name. | |
c179123 | // refersTo returns true if n is a reference to the same object as x. | |
c179124 | // isEmptyString returns true if n is an empty string literal. | |
c179125 | // countUses returns the number of uses of the identifier x in scope. | |
c179126 | // assignsTo returns true if any of the code in scope assigns to or takes the address of x. | |
c179127 | // newPkgDot returns an ast.Expr referring to "pkg.name" at position pos. | |
c179128 | // renameTop renames all references to the top-level name old.
// It returns true if it makes any changes. | |
c179129 | // matchLen returns the length of the longest prefix shared by x and y. | |
c179130 | // deleteImport deletes the import path from the file f, if present. | |
c179131 | // rewriteImport rewrites any import of path oldPath to path newPath. | |
c179132 | // DefaultTicket returns a ticket used for background context or dev_appserver. | |
c179133 | // flushLog attempts to flush any pending logs to the appserver.
// It should not be called concurrently. | |
c179134 | // withDeadline is like context.WithDeadline, except it ignores the zero deadline. | |
c179135 | // KeepAlive signals that the connection is still in use.
// It may be called to prevent the socket being closed due to inactivity. | |
c179136 | // applyTransaction applies the transaction t to message pb
// by using the relevant setter passed to RegisterTransactionSetter. | |
c179137 | // analyze checks the app for building with the given build tags and returns hasMain,
// app files, and a map of full directory import names to original import names. | |
c179138 | // buildContext returns the context for building the source. | |
c179139 | // synthesizeMain generates a new main func and writes it to the tarball. | |
c179140 | // findInGopath searches the gopath for the named import directory. | |
c179141 | // copyTree copies srcDir to tar file dstDir, ignoring skipFiles. | |
c179142 | // copyFile copies src to tar file dst. | |
c179143 | // checkMain verifies that there is a single "main" function.
// It also returns a list of all Go source files in the app. | |
c179144 | // isMain returns whether the given function declaration is a main function.
// Such a function must be called "main", not have a receiver, and have no arguments or return types. | |
c179145 | // readFile reads and parses the Go source code file and returns whether it has a main function. | |
c179146 | // initField is similar to reflect's Value.FieldByIndex, in that it
// returns the nested struct field corresponding to index, but it
// initialises any nil pointers encountered when traversing the structure. | |
c179147 | // validIndexNameOrDocID is the Go equivalent of Python's
// _ValidateVisiblePrintableAsciiNotReserved. | |
c179148 | // Open opens the index with the given name. The index is created if it does
// not already exist.
//
// The name is a human-readable ASCII string. It must contain no whitespace
// characters and not start with "!". | |
c179149 | // Get loads the document with the given ID into dst.
//
// The ID is a human-readable ASCII string. It must be non-empty, contain no
// whitespace characters and not start with "!".
//
// dst must be a non-nil struct pointer or implement the FieldLoadSaver
// interface.
//
// ErrFieldMismatch is returned when a field ... | |
c179150 | // DeleteMulti deletes multiple documents from the index.
//
// The returned error may be an instance of appengine.MultiError, in which case
// it will be the same size as srcs and the individual errors inside will
// correspond with the items in srcs. | |
c179151 | // fetchMore retrieves more results, if there are no errors or pending results. | |
c179152 | // Facets returns the facets found within the search results, if any facets
// were requested in the SearchOptions. | |
c179153 | // DefaultBucketName returns the name of this application's
// default Google Cloud Storage bucket. | |
c179154 | // valid returns whether the key is valid. | |
c179155 | // Equal returns whether two keys are equal. | |
c179156 | // root returns the furthest ancestor of a key, which may be itself. | |
c179157 | // marshal marshals the key's string representation to the buffer. | |
c179158 | // String returns a string representation of the key. | |
c179159 | // Encode returns an opaque representation of the key
// suitable for use in HTML and URLs.
// This is compatible with the Python and Java runtimes. | |
c179160 | // DecodeKey decodes a key from the opaque representation returned by Encode. | |
c179161 | // NewIncompleteKey creates a new incomplete key.
// kind cannot be empty. | |
c179162 | // NewKey creates a new key.
// kind cannot be empty.
// Either one or both of stringID and intID must be zero. If both are zero,
// the key returned is incomplete.
// parent must either be a complete key or nil. | |
c179163 | // AllocateIDs returns a range of n integer IDs with the given kind and parent
// combination. kind cannot be empty; parent may be nil. The IDs in the range
// returned will not be used by the datastore's automatic ID sequence generator
// and may be used with NewKey without conflict.
//
// The range is inclusive at th... | |
c179164 | // IsOverQuota reports whether err represents an API call failure
// due to insufficient available quota. | |
c179165 | // This is only for classic App Engine adapters. | |
c179166 | // Send sends an email message. | |
c179167 | // SendToAdmins sends an email message to the application's administrators. | |
c179168 | // Failures counts the number of failed tests in this report | |
c179169 | // Read field key. | |
c179170 | // Error if typ doesn't match rt. | |
c179171 | // Read typ3 byte. | |
c179172 | // Copy into PrefixBytes | |
c179173 | // A heuristic to guess the size of a registered type and return it as a string.
// If the size is not fixed it returns "variable". | |
c179174 | // Find all conflicting prefixes for concrete types
// that "implement" the interface. "Implement" in quotes because
// we only consider the pointer, for extra safety. | |
c179175 | // Ensure that prefix-conflicting implementing concrete types
// are all registered in the priority list.
// Returns an error if a disamb conflict is found. | |
c179176 | // constructConcreteType creates the concrete value as
// well as the corresponding settable value for it.
// Return irvSet which should be set on caller's interface rv. | |
c179177 | // MarshalBinaryLengthPrefixedWriter writes the bytes as would be returned from
// MarshalBinaryLengthPrefixed to the writer w. | |
c179178 | // MarshalBinaryBare encodes the object o according to the Amino spec.
// MarshalBinaryBare doesn't prefix the byte-length of the encoding,
// so the caller must handle framing. | |
c179179 | // Like UnmarshalBinaryBare, but will first decode the byte-length prefix.
// UnmarshalBinaryLengthPrefixed will panic if ptr is a nil-pointer.
// Returns an error if not all of bz is consumed. | |
c179180 | // UnmarshalBinaryBare will panic if ptr is a nil-pointer. | |
c179181 | // MustMarshalJSON panics if an error occurs. Besides tha behaves exactly like MarshalJSON. | |
c179182 | // MustUnmarshalJSON panics if an error occurs. Besides tha behaves exactly like UnmarshalJSON. | |
c179183 | // MarshalJSONIndent calls json.Indent on the output of cdc.MarshalJSON
// using the given prefix and indent string. | |
c179184 | // newDataReader creates a new DataReader reading from 'r'. | |
c179185 | // Read reads the TELNET escaped data from the wrapped io.Reader, and "un-escapes" it into 'data'. | |
c179186 | // ListenAndServeTLS acts identically to ListenAndServe, except that it
// uses the TELNET protocol over TLS.
//
// From a TELNET protocol point-of-view, it allows for 'secured telnet', also known as TELNETS,
// which by default listens to port 992. | |
c179187 | // Produce makes ProducerFunc fit the Producer interface. | |
c179188 | // PromoteHandlerFunc turns a HandlerFunc into a Handler. | |
c179189 | // Serve accepts an incoming TELNET or TELNETS client connection on the net.Listener `listener`. | |
c179190 | // Serve accepts an incoming TELNET client connection on the net.Listener `listener`. | |
c179191 | // Fail prints usage information to stderr and exits with non-zero status | |
c179192 | // WriteUsage writes usage information to the given writer | |
c179193 | // WriteHelp writes the usage string followed by the full help string for each option | |
c179194 | // MustParse processes command line arguments and exits upon failure | |
c179195 | // Parse processes command line arguments and stores them in dest | |
c179196 | // walkFields calls a function for each field of a struct, recursively expanding struct fields. | |
c179197 | // Parse processes the given command line option, storing the results in the field
// of the structs from which NewParser was constructed | |
c179198 | // parse a value as the appropriate type and store it in the struct | |
c179199 | // canParse returns true if the type can be parsed from a string |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.