_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c17100 | // Open authenticates the ciphertext and if valid, decrypts and returns plaintext. | |
c17101 | // Watch the prefix for any events and send a 'true' if we should attempt grab leader | |
c17102 | // EncodedStringToKey converts a base64-encoded string into key bytes. | |
c17103 | // Given SealedData returns equivalent URL safe base64 encoded string. | |
c17104 | // Given a URL safe base64 encoded string, returns SealedData. | |
c17105 | // Notify all Waiting goroutines | |
c17106 | // Blocks until a broadcast is received | |
c17107 | // Returns a channel the caller can use to wait for a broadcast | |
c17108 | // Return a new NonceCache. Allows you to control cache capacity and ttl | |
c17109 | // InCache checks if a nonce is in the cache. If not, it adds it to the
// cache and returns false. Otherwise it returns true. | |
c17110 | // New creates a new Cache.
// If maxEntries is zero, the cache has no limit and it's assumed
// that eviction is done by the caller. | |
c17111 | // Add or Update a value in the cache, return true if the key already existed | |
c17112 | // Adds a value to the cache with a TTL | |
c17113 | // Adds a value to the cache. | |
c17114 | // Returns stats about the current state of the cache | |
c17115 | // Get a list of keys at this point in time | |
c17116 | // Get the value without updating the expiration or last used or stats | |
c17117 | // Modifies the priority and value of an Item in the queue. | |
c17118 | // Return n-bytes of random values from the CSPRNG. | |
c17119 | // Run a routine and collect errors if any | |
c17120 | // Execute a long running routine | |
c17121 | // Run a goroutine in a loop continuously, if the callBack returns false the loop is broken | |
c17122 | // Wait for all the routines to complete and return any errors collected | |
c17123 | // Returns key from keypath or uses salt + passphrase to generate key using a KDF. | |
c17124 | // Encodes all data needed to decrypt message into a JSON string and writes it to disk. | |
c17125 | // Reads in encoded ciphertext from disk and breaks into component parts. | |
c17126 | // Returns nil if there's nothing to do. | |
c17127 | // This function always runs under an opLock. Therefore, only one thread is
// touching the affected files. | |
c17128 | // This function always runs within an opLock for the given
// key, and not concurrently. | |
c17129 | // folderSize estimates the diskUsage of a folder by reading
// up to DiskUsageFilesAverage entries in it and assumming any
// other files will have an avereage size. | |
c17130 | // updateDiskUsage reads the size of path and atomically
// increases or decreases the diskUsage variable.
// setting add to false will subtract from disk usage. | |
c17131 | // DiskUsage implements the PersistentDatastore interface
// and returns the current disk usage in bytes used by
// this datastore.
//
// The size is approximative and may slightly differ from
// the real disk values. | |
c17132 | // Deactivate closes background maintenance threads, most write
// operations will fail but readonly operations will continue to
// function | |
c17133 | // StoreStrLen_or_IndPtr stores v into StrLen_or_IndPtr field of p
// and returns address of that field. | |
c17134 | // utf16toutf8 returns the UTF-8 encoding of the UTF-16 sequence s,
// with a terminating NUL removed. | |
c17135 | // serve initialize an HTTP server | |
c17136 | // handleTemplate handles templates | |
c17137 | // The start function must be run in its own goroutine. The entire WireService is single
// threaded which means all messages are processed sequentially removing the need for complex
// locking. | |
c17138 | // handleMessages handles messages | |
c17139 | // Build a spend transaction for the amount and return the transaction fee | |
c17140 | // ... or I'm gonna fade away | |
c17141 | // CheckDoubleSpends takes a transaction and compares it with
// all transactions in the db. It returns a slice of all txids in the db
// which are double spent by the received tx. | |
c17142 | // PopulateAdrs just puts a bunch of adrs in ram; it doesn't touch the DB | |
c17143 | // check if a node is populated based on node position and size of tree | |
c17144 | // Mark the given key as used and extend the lookahead window | |
c17145 | // Get the PoW target this block should meet. We may need to handle a difficulty adjustment
// or testnet difficulty rules. | |
c17146 | // GetCommonAncestor returns last header before reorg point | |
c17147 | // Rollback the header database to the last header before time t.
// We shouldn't go back further than the checkpoint | |
c17148 | // Verifies the header hashes into something lower than specified by the 4-byte bits field. | |
c17149 | // This function takes in a start and end block header and uses the timestamps in each
// to calculate how much of a difficulty adjustment is needed. It returns a new compact
// difficulty target. | |
c17150 | // provision provisions the resources as well as the custom provision | |
c17151 | // Called by connManager when it adds a new connection | |
c17152 | // Query the DNS seeds and pass the addresses into the address manager. | |
c17153 | // If we have connected peers let's use them to get more addresses. If not, use the DNS seeds | |
c17154 | // geomFromPtr returns a new Geometry that's been initialized with a C pointer
// to the GEOS C API object.
//
// This constructor should be used when the caller has ownership of the
// underlying C object. | |
c17155 | // geomFromPtrUnowned returns a new Geometry that's been initialized with
// a C pointer to the GEOS C API object.
//
// This constructor should be used when the caller doesn't have ownership of the
// underlying C object. | |
c17156 | // Linearref functions
// Project returns distance of point projected on this geometry from origin.
// This must be a lineal geometry. | |
c17157 | // ProjectNormalized returns distance of point projected on this geometry from
// origin, divided by its length.
// This must be a lineal geometry. | |
c17158 | // Interpolate returns the closest point to given distance within geometry.
// This geometry must be a LineString. | |
c17159 | // LineInterpolatePoint interpolates a point along a line. | |
c17160 | // OffsetCurve computes a new linestring that is offset from the input
// linestring by the given distance and buffer options. A negative distance is
// offset on the right side; positive distance offset on the left side. | |
c17161 | // SimplifyP returns a geometry simplified by amount given by tolerance.
// Unlike Simplify, SimplifyP guarantees it will preserve topology. | |
c17162 | // Snap returns a new geometry where the geometry is snapped to the given
// geometry by given tolerance. | |
c17163 | // Binary topology functions
// Intersection returns a new geometry representing the points shared by this
// geometry and the other. | |
c17164 | // Difference returns a new geometry representing the points making up this
// geometry that do not make up the other. | |
c17165 | // SymDifference returns a new geometry representing the set combining the
// points in this geometry not in the other, and the points in the other
// geometry and not in this. | |
c17166 | // Union returns a new geometry representing all points in this geometry and the
// other. | |
c17167 | // Binary predicate functions
// Disjoint returns true if the two geometries have no point in common. | |
c17168 | // Touches returns true if the two geometries have at least one point in common,
// but their interiors do not intersect. | |
c17169 | // Intersects returns true if the two geometries have at least one point in
// common. | |
c17170 | // Crosses returns true if the two geometries have some but not all interior
// points in common. | |
c17171 | // Within returns true if every point of this geometry is a point of the other,
// and the interiors of the two geometries have at least one point in common. | |
c17172 | // Contains returns true if every point of the other is a point of this geometry,
// and the interiors of the two geometries have at least one point in common. | |
c17173 | // Overlaps returns true if the geometries have some but not all points in
// common, they have the same dimension, and the intersection of the interiors
// of the two geometries has the same dimension as the geometries themselves. | |
c17174 | // Equals returns true if the two geometries have at least one point in common,
// and no point of either geometry lies in the exterior of the other geometry. | |
c17175 | // Covers returns true if every point of the other geometry is a point of this
// geometry. | |
c17176 | // CoveredBy returns true if every point of this geometry is a point of the
// other geometry. | |
c17177 | // EqualsExact returns true if both geometries are Equal, as evaluated by their
// points being within the given tolerance. | |
c17178 | // Geometry info functions
// Type returns the SFS type of the geometry. | |
c17179 | // SetSRID sets the geometry's SRID. | |
c17180 | // Coords returns a slice of Coord, a sequence of coordinates underlying the
// point, linestring, or linear ring. | |
c17181 | // Point returns the nth point of the geometry.
// Geometry must be LineString. | |
c17182 | // Distance returns the Cartesian distance between the two geometries. | |
c17183 | // RelatePat returns true if the DE-9IM matrix equals the intersection matrix of
// the two geometries. | |
c17184 | // coordSlice constructs a slice of Coord objects from a coordinate sequence. | |
c17185 | // Creates a new WKT decoder, can be nil if initialization in the C API fails | |
c17186 | // decode decodes the WKT string and returns a geometry | |
c17187 | // Encode returns a string that is the geometry encoded as WKT | |
c17188 | // PrepareGeometry constructs a prepared geometry from a normal geometry object. | |
c17189 | // Prepared geometry binary predicates
// Contains computes whether the prepared geometry contains the other prepared
// geometry. | |
c17190 | // ContainsP computes whether the prepared geometry properly contains the other
// prepared geometry. | |
c17191 | // CoveredBy computes whether the prepared geometry is covered by the other
// prepared geometry. | |
c17192 | // Covers computes whether the prepared geometry covers the other prepared
// geometry. | |
c17193 | // Crosses computes whether the prepared geometry crosses the other prepared
// geometry. | |
c17194 | // Disjoint computes whether the prepared geometry is disjoint from the other
// prepared geometry. | |
c17195 | // Intersects computes whether the prepared geometry intersects the other
// prepared geometry. | |
c17196 | // Overlaps computes whether the prepared geometry overlaps the other
// prepared geometry. | |
c17197 | // Touches computes whether the prepared geometry touches the other
// prepared geometry. | |
c17198 | // Within computes whether the prepared geometry is within the other
// prepared geometry. | |
c17199 | // sorted set commands |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.