_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c10100 | // CompareAndSet atomically sets the value to the given updated value if the current value == expected value.
// Returns true if the expectation was met | |
c10101 | // DecrementAndGet atomically decrements current value by one and returns the result. | |
c10102 | // Get atomically retrieves the current value. | |
c10103 | // GetAndAdd atomically adds the given delta to the current value and returns the result. | |
c10104 | // GetAndDecrement atomically decrements the current value by one and returns the result. | |
c10105 | // GetAndSet atomically sets current value to the given value and returns the old value. | |
c10106 | // IncrementAndGet atomically increments current value by one and returns the result. | |
c10107 | // Set atomically sets current value to the given value. | |
c10108 | // NewEqualFilter creates a new equality filter instance for query. | |
c10109 | // NewRangeFilter creates a range filter for query.
// Range arguments must be int64 values.
// String ranges are not supported. | |
c10110 | // NewContainsFilter creates a contains filter for query on collection index. | |
c10111 | // NewContainsRangeFilter creates a contains filter for query on ranges of data in a collection index. | |
c10112 | // NewGeoWithinRegionFilter creates a geospatial "within region" filter for query.
// Argument must be a valid GeoJSON region. | |
c10113 | // NewGeoWithinRegionForCollectionFilter creates a geospatial "within region" filter for query on collection index.
// Argument must be a valid GeoJSON region. | |
c10114 | // NewGeoRegionsContainingPointFilter creates a geospatial "containing point" filter for query.
// Argument must be a valid GeoJSON point. | |
c10115 | // NewGeoRegionsContainingPointForCollectionFilter creates a geospatial "containing point" filter for query on collection index.
// Argument must be a valid GeoJSON point. | |
c10116 | // Create a filter for query.
// Range arguments must be longs or integers which can be cast to longs.
// String ranges are not supported. | |
c10117 | // On batch operations the key values are not returned from the server
// So we reuse the Key on the batch Object | |
c10118 | // Parses the given byte buffer and populate the result object.
// Returns the number of bytes that were parsed from the given buffer. | |
c10119 | /**
* Write and twice read an expiration record.
*/ | |
c10120 | // Wait for asynchronous task to complete using default sleep interval. | |
c10121 | // NewTransaction starts a new transaction. The resulting transaction object
// can be mutated without incurring changes to the underlying Datastore until
// the transaction is Committed. | |
c10122 | // newImplicitTransaction creates a transaction marked as 'implicit'.
// Implicit transactions are created by Datastore methods performing single operations. | |
c10123 | // DiskUsage implements the PersistentDatastore interface.
// It returns the sum of lsm and value log files sizes in bytes. | |
c10124 | // Alias to commit | |
c10125 | // update modifies the priority of an item and updates the heap accordingly | |
c10126 | // get the priority of the heap's top item. | |
c10127 | // Creates a closure function that is used as an http handler for browsers to
// subscribe to events via longpolling.
// Notice how we're wrapping LongpollManager.SubscriptionHandler in order to
// add our own logic and validation. | |
c10128 | // QueueEvent adds a new longpoll Event to the front of our buffer and removes
// the oldest event from the back of the buffer if we're already at maximum
// capacity. | |
c10129 | // get web handler that has closure around sub chanel and clientTimeout channnel | |
c10130 | // This should be fired off in its own goroutine | |
c10131 | // Start the polling of the events on the URL defined in the client
// Will send the events in the EventsChan of the client | |
c10132 | // Call the longpoll server to get the events since a specific timestamp | |
c10133 | // NewGenerator creates a new Generator from the specified configuration. If no
// input is given, all the default values are used. This function is safe for
// concurrent use. | |
c10134 | // Generate generates a password with the given requirements. length is the
// total number of characters in the password. numDigits is the number of digits
// to include in the result. numSymbols is the number of symbols to include in
// the result. noUpper excludes uppercase letters from the results. allowRepeat
// a... | |
c10135 | // MustGenerate is the same as Generate, but panics on error. | |
c10136 | // Generate is the package shortcut for Generator.Generate. | |
c10137 | // randomInsert randomly inserts the given value into the given string. | |
c10138 | // randomElement extracts a random element from the given string. | |
c10139 | // kick off a server for exposing scan metrics | |
c10140 | // ShouldRetry implements custom logic for when a checkpont should retry | |
c10141 | // start is a blocking operation which will loop and attempt to find new
// shards on a regular cadence. | |
c10142 | // findNewShards pulls the list of shards from the Kinesis API
// and uses a local cache to determine if we are already processing
// a particular shard. | |
c10143 | // listShards pulls a list of shard IDs from the kinesis api | |
c10144 | // WithMaxInterval sets the flush interval | |
c10145 | // WithDynamoClient sets the dynamoDb client | |
c10146 | // New returns a checkpoint that uses DynamoDB for underlying storage | |
c10147 | // WithClient overrides the default client | |
c10148 | // New creates a kinesis consumer with default settings. Use Option to override
// any of the optional attributes. | |
c10149 | // Scan launches a goroutine to process each of the shards in the stream. The ScanFunc
// is passed through to each of the goroutines and called with each message pulled from
// the stream. | |
c10150 | // ScanShard loops over records on a specific shard, calls the callback func
// for each record and checkpoints the progress of scan. | |
c10151 | // New returns a checkpoint that uses Redis for underlying storage | |
c10152 | // Get fetches the checkpoint for a particular Shard. | |
c10153 | // key generates a unique Redis key for storage of Checkpoint. | |
c10154 | // New returns a checkpoint that uses PostgresDB for underlying storage
// Using connectionStr turn it more flexible to use specific db configs | |
c10155 | // Shutdown the checkpoint. Save any in-flight data. | |
c10156 | // NewNonTS creates and initializes a new non-threadsafe Set. | |
c10157 | // IsEqual test whether s and t are the same in size and have the same items. | |
c10158 | // String returns a string representation of s | |
c10159 | // Intersection returns a new set which contains items that only exist in all given sets. | |
c10160 | // SymmetricDifference returns a new set which s is the difference of items which are in
// one of either, but not in both. | |
c10161 | // StringSlice is a helper function that returns a slice of strings of s. If
// the set contains mixed types of items only items of type string are returned. | |
c10162 | // IntSlice is a helper function that returns a slice of ints of s. If
// the set contains mixed types of items only items of type int are returned. | |
c10163 | // RequestTeamInfo is a function that returns team information for a
// given token. | |
c10164 | // GroupCheck is an authorization function that checks, if the Token
// was issued for an employee of a specified team. The given
// TokenContainer must be valid. As side effect it sets "uid" and
// "team" in the gin.Context to the "official" team. | |
c10165 | // ScopeCheck does an OR check of scopes given from token of the
// request to all provided scopes. If one of provided scopes is in the
// Scopes of the token it grants access to the resource. | |
c10166 | //
// TokenContainer
//
// Validates that the AccessToken within TokenContainer is not expired and not empty. | |
c10167 | // Setup the authorization path | |
c10168 | // Create returns a file system that prefixes all paths and forwards to root. | |
c10169 | // PrefixPath returns path with the prefix prefixed. | |
c10170 | // OpenFile implements vfs.Filesystem. | |
c10171 | // Remove implements vfs.Filesystem. | |
c10172 | // Rename implements vfs.Filesystem. | |
c10173 | // Mkdir implements vfs.Filesystem. | |
c10174 | // Stat implements vfs.Filesystem. | |
c10175 | // ReadDir implements vfs.Filesystem. | |
c10176 | // NewMemFile creates a Buffer which byte slice is safe from concurrent access,
// the file itself is not thread-safe.
//
// This means multiple files can work safely on the same byte slice,
// but multiple go routines working on the same file may corrupt the internal pointer structure. | |
c10177 | // Truncate changes the size of the file | |
c10178 | // ReadFile reads the file named by filename and returns the contents. A
// successful call returns err == nil, not err == EOF. Because ReadFile reads
// the whole file, it does not treat an EOF from Read as an error to be
// reported.
//
// This is a port of the stdlib ioutil.ReadFile function. | |
c10179 | // Mkdir is disabled and returns ErrorReadOnly | |
c10180 | // Create a new MemFS filesystem which entirely resides in memory | |
c10181 | // Mkdir creates a new directory with given permissions | |
c10182 | // Write is disabled and returns ErrorReadOnly | |
c10183 | // Read is disabled and returns ErrorWroteOnly | |
c10184 | // makeSlice allocates a slice of size n. If the allocation fails, it panics
// with ErrTooLarge. | |
c10185 | // OpenFile returns dummy error | |
c10186 | // Mkdir returns dummy error | |
c10187 | // Stat returns dummy error | |
c10188 | // ReadDir returns dummy error | |
c10189 | // Write returns dummy error | |
c10190 | // ReadAt returns dummy error | |
c10191 | // Seek returns dummy error | |
c10192 | // OpenFile wraps os.OpenFile | |
c10193 | // Mkdir wraps os.Mkdir | |
c10194 | // Rename wraps os.Rename | |
c10195 | // ReadDir wraps ioutil.ReadDir | |
c10196 | // Create a new MountFS based on a root filesystem. | |
c10197 | // findMount finds a valid mountpoint for the given path.
// It returns the corresponding filesystem and the path inside of this filesystem. | |
c10198 | // Remove removes a file or directory | |
c10199 | // Rename renames a file.
// Renames across filesystems are not allowed. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.