_id stringlengths 2 7 | title stringclasses 1 value | partition stringclasses 3 values | text stringlengths 6 2.61k | language stringclasses 1 value | meta_information dict |
|---|---|---|---|---|---|
c182300 | test | // CompareNitro implements comparator for Nitro instances based on its id | {
"resource": ""
} | ||
c182301 | test | // DefaultConfig - Nitro configuration | {
"resource": ""
} | ||
c182302 | test | // Delete an item
// Delete always succeed if an item exists. | {
"resource": ""
} | ||
c182303 | test | // GetNode implements lookup of an item and return its skiplist Node
// This API enables to lookup an item without using a snapshot handle. | {
"resource": ""
} | ||
c182304 | test | // SetKeyComparator provides key comparator for the Nitro item data | {
"resource": ""
} | ||
c182305 | test | // UseMemoryMgmt provides custom memory allocator for Nitro items storage | {
"resource": ""
} | ||
c182306 | test | // NewWithConfig creates a new Nitro instance based on provided configuration. | {
"resource": ""
} | ||
c182307 | test | // MemoryInUse returns total memory used by the Nitro instance. | {
"resource": ""
} | ||
c182308 | test | // Close shuts down the nitro instance | {
"resource": ""
} | ||
c182309 | test | // NewWriter creates a Nitro writer | {
"resource": ""
} | ||
c182310 | test | // SnapshotSize returns the memory used by Nitro snapshot metadata | {
"resource": ""
} | ||
c182311 | test | // Encode implements Binary encoder for snapshot metadata | {
"resource": ""
} | ||
c182312 | test | // Decode implements binary decoder for snapshot metadata | {
"resource": ""
} | ||
c182313 | test | // Open implements reference couting and garbage collection for snapshots
// When snapshots are shared by multiple threads, each thread should Open the
// snapshot. This API internally tracks the reference count for the snapshot. | {
"resource": ""
} | ||
c182314 | test | // CompareSnapshot implements comparator for snapshots based on snapshot number | {
"resource": ""
} | ||
c182315 | test | // GC implements manual garbage collection of Nitro snapshots. | {
"resource": ""
} | ||
c182316 | test | // GetSnapshots returns the list of current live snapshots
// This API is mainly for debugging purpose | {
"resource": ""
} | ||
c182317 | test | // MemoryInUse returns total memory used by all Nitro instances in the current process | {
"resource": ""
} | ||
c182318 | test | // CompareBS is a barrier session comparator based on seqno | {
"resource": ""
} | ||
c182319 | test | // Acquire marks enter of an accessor in the skiplist | {
"resource": ""
} | ||
c182320 | test | // Release marks leaving of an accessor in the skiplist | {
"resource": ""
} | ||
c182321 | test | // FlushSession closes the current barrier session and starts the new session.
// The caller should provide the destructor pointer for the new session. | {
"resource": ""
} | ||
c182322 | test | // Apply updates the report with provided paritial stats | {
"resource": ""
} | ||
c182323 | test | // AddInt64 provides atomic add | {
"resource": ""
} | ||
c182324 | test | // AddUint64 provides atomic add | {
"resource": ""
} | ||
c182325 | test | // Merge updates global stats with partial stats and resets partial stats | {
"resource": ""
} | ||
c182326 | test | // GetStats returns skiplist stats | {
"resource": ""
} | ||
c182327 | test | // NewIterator creates an iterator for skiplist | {
"resource": ""
} | ||
c182328 | test | // SeekFirst moves cursor to the start | {
"resource": ""
} | ||
c182329 | test | // SeekWithCmp moves iterator to a provided item by using custom comparator | {
"resource": ""
} | ||
c182330 | test | // Seek moves iterator to a provided item | {
"resource": ""
} | ||
c182331 | test | // Valid returns true when iterator reaches the end | {
"resource": ""
} | ||
c182332 | test | // Delete removes the current item from the skiplist | {
"resource": ""
} | ||
c182333 | test | // Next moves iterator to the next item | {
"resource": ""
} | ||
c182334 | test | // Init - externally available init method | {
"resource": ""
} | ||
c182335 | test | // FromURL converts the given URL to a folder name | {
"resource": ""
} | ||
c182336 | test | // ToURL converts the given folder to an URL | {
"resource": ""
} | ||
c182337 | test | // Size returns the Version 1 header size plus the size of all the offsets | {
"resource": ""
} | ||
c182338 | test | // WriteTo writes the TupleHeader into the given writer. | {
"resource": ""
} | ||
c182339 | test | // Read function reads configurations from the file defined in
// Config.filename. | {
"resource": ""
} | ||
c182340 | test | // Del function deletes a key from the configuration. | {
"resource": ""
} | ||
c182341 | test | // WriteTo function writes the configuration to a new file. This function
// re-organizes the configuration and deletes all the comments. | {
"resource": ""
} | ||
c182342 | test | // To check this line is a section or not. If it is not a section, it returns
// "". | {
"resource": ""
} | ||
c182343 | test | // To check this line is a valid key-value pair or not. | {
"resource": ""
} | ||
c182344 | test | // To check this line is a whole line comment or not. | {
"resource": ""
} | ||
c182345 | test | // NewResponseWrapper creates a new wrapper. The passed http.ResponseWriter is
// used in case the wrapper needs to be hijacked. | {
"resource": ""
} | ||
c182346 | test | // Hijack tries to use the original http.ResponseWriter for hijacking. If the
// original writer doesn't implement http.Hijacker, it returns an error. | {
"resource": ""
} | ||
c182347 | test | // CloseNotify tries to use the original http.ResponseWriter for close
// notification. If the original writer doesn't implement http.CloseNotifier,
// it returns a channel that will never close. | {
"resource": ""
} | ||
c182348 | test | // DateFormat is used to format the timestamp. | {
"resource": ""
} | ||
c182349 | test | // Logger returns a new logger to be wrapped around your main http.Handler | {
"resource": ""
} | ||
c182350 | test | //GetAvailableInventory - this should return available inventory and start a long task poller | {
"resource": ""
} | ||
c182351 | test | // Expiration sets the expiration time of the auth token | {
"resource": ""
} | ||
c182352 | test | // Claimer is responsible for transforming a standard claims object into a
// custom one. | {
"resource": ""
} | ||
c182353 | test | // Issuer sets the issuer in the standart claims object. | {
"resource": ""
} | ||
c182354 | test | // User sets the query key from which to obtain the user. | {
"resource": ""
} | ||
c182355 | test | // Password sets the query key from which to obtain the password. | {
"resource": ""
} | ||
c182356 | test | // Extractor extracts a token from a request | {
"resource": ""
} | ||
c182357 | test | // TokenGenerator returns a handler that will read a username and password from
// a request form, create a jwt token if they are valid, and store the signed
// token in the request context for later consumption.
//
// If handler h is nil, the generated token will be written verbatim in the
// response. | {
"resource": ""
} | ||
c182358 | test | // Token returns the token string stored in the request context, or an empty
// string. | {
"resource": ""
} | ||
c182359 | test | // Claims returns the claims stored in the request | {
"resource": ""
} | ||
c182360 | test | // Used to print tokens | {
"resource": ""
} | ||
c182361 | test | // NewLexer creates a new scanner from the input | {
"resource": ""
} | ||
c182362 | test | // Run lexes the input by executing state functions
// until the state is nil | {
"resource": ""
} | ||
c182363 | test | // emit passes an item pack to the client | {
"resource": ""
} | ||
c182364 | test | // skipWhitespace ignores all whitespace characters | {
"resource": ""
} | ||
c182365 | test | // next advances the lexer position and returns the next rune. If the input
// does not have any more runes, an `eof` is returned. | {
"resource": ""
} | ||
c182366 | test | // LineNum returns the current line based on the data processed so far | {
"resource": ""
} | ||
c182367 | test | // Offset determines the character offset from the beginning of the current line | {
"resource": ""
} | ||
c182368 | test | // errorf returns an error token and terminates the scan
// by passing back a nil pointer that will be the next
// state thus terminating the lexer | {
"resource": ""
} | ||
c182369 | test | // Main lexer loop | {
"resource": ""
} | ||
c182370 | test | // Lexes a comment line | {
"resource": ""
} | ||
c182371 | test | // New creates a new TupleType with the given namespace and type name | {
"resource": ""
} | ||
c182372 | test | // AddVersion adds a version to the tuple type | {
"resource": ""
} | ||
c182373 | test | // Contains determines is a field exists in the TupleType | {
"resource": ""
} | ||
c182374 | test | // Offset determines the numerical offset for the given field | {
"resource": ""
} | ||
c182375 | test | // Versions returns an array of versions contained in this type | {
"resource": ""
} | ||
c182376 | test | //SetPrivateMeta - set a private meta data record | {
"resource": ""
} | ||
c182377 | test | //SetPublicMeta - set a public metadata record | {
"resource": ""
} | ||
c182378 | test | //GetRedactedVersion - returns a redacted version of this task, removing private info | {
"resource": ""
} | ||
c182379 | test | // Equal - define task equality | {
"resource": ""
} | ||
c182380 | test | // HTTP returns a handler that will check each request's method against a
// predefined whitelist. If the request's method is not part of the list,
// the response will be a 400 Bad Request. | {
"resource": ""
} | ||
c182381 | test | // PutUint8 sets an 8-bit unsigned value for the given string name. The field name must be a Uint8Field otherwise an error will be returned. If the type buffer no longer has enough space to write this value an xbinary.ErrOutOfRange error will be returned. Upon success 2 bytes should be written into the buffer and the returned error should be nil. The type code is written first then the byte value. | {
"resource": ""
} | ||
c182382 | test | // PutInt8 sets an 8-bit signed value for the given string name. The field name must be an Int8Field otherwise an error will be returned. If the type buffer no longer has enough space to write this value, an xbinary.ErrOutOfRange error will be returned. Upon success, 2 bytes should be written into the buffer and the returned error should be nil. The type code is written first then the byte value. | {
"resource": ""
} | ||
c182383 | test | // PutUint16 sets a 16-bit unsigned value for the given field name.The field name must be a Uint16Field otherwise an error will be returned. If the type buffer no longer has enough space to write the value, an xbinary.ErrOutOfRange error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be writtn first. If the value is `< math.MaxUint8`, only 1 byte will be written. Otherwise, the entire 16-bit value will be written. | {
"resource": ""
} | ||
c182384 | test | // PutInt16 sets a 16-bit signed value for the given field name.The field name must be an Int16Field; otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an xbinary.ErrOutOfRange error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the value is `< math.MaxUint8`, only 1 byte will be written. Otherwise, the entire 16-bit value will be written. | {
"resource": ""
} | ||
c182385 | test | // PutUint32 sets a 32-bit unsigned value for the given field name. The field name must be a Uint32Field, otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the value is `< math.MaxUint8`, only 1 byte will be written. If the value is `< math.MaxUint16`, only 2 bytes will be written. Otherwise, the entire 32-bit value will be written. | {
"resource": ""
} | ||
c182386 | test | // PutInt32 sets a 32-bit signed value for the given field name. The field name must be a Int32Field. Otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the absolute value is `< math.MaxUint8`, only 1 byte will be written. If the absolute value is `< math.MaxUint16`, only 2 bytes will be written. Otherwise, the entire 32-bit value will be written. | {
"resource": ""
} | ||
c182387 | test | // PutUint64 sets a 64-bit unsigned integer for the given field name. The field name must be a Uint64Field. Otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the absolute value is `< math.MaxUint8`, only 1 byte will be written. If the absolute value is `< math.MaxUint16`, only 2 bytes will be written. If the absolute value is `< math.MaxUint32`, only 4 bytes will be written. Otherwise, the entire 64-bit value will be written. | {
"resource": ""
} | ||
c182388 | test | // PutInt64 sets a 64-bit signed integer for the given field name. The field name must be a Int64Field. Otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the absolute value is `< math.MaxUint8`, only 1 byte will be written. If the absolute value is `< math.MaxUint16`, only 2 bytes will be written. If the absolute value is `< math.MaxUint32`, only 4 bytes will be written. Otherwise, the entire 64-bit value will be written. | {
"resource": ""
} | ||
c182389 | test | // NewPackageList creates a new package registry | {
"resource": ""
} | ||
c182390 | test | // PutFloat32 writes a 32-bit float for the given string field. The field type must be `Float32Field`, otherwise an error is returned. The type code is written first then the value. Upon success, the number of bytes written is returned along with a nil error. | {
"resource": ""
} | ||
c182391 | test | // Languages provides the handler with supported languages. | {
"resource": ""
} | ||
c182392 | test | // Session will be used to set the current language. | {
"resource": ""
} | ||
c182393 | test | //Data returns the language data stored in the request. | {
"resource": ""
} | ||
c182394 | test | // URL prefixes a url string with the request language. | {
"resource": ""
} | ||
c182395 | test | // Returns the terminal size | {
"resource": ""
} | ||
c182396 | test | //GetRequestIDFromTaskResponse - a function to get a request id from a taskresponse object | {
"resource": ""
} | ||
c182397 | test | // PutString writes a string value for the given field. The field type must be a `StringField` otherwise an error will be returned. The type code is written first, then a length, and finally the value. If the size of the string is `< math.MaxUint8`, a single byte will represent the length. If the size of the string is `< math.MaxUint16`, a uint16 value will represent the length and so on. If the buffer does not have enough space for the entire string and field header, an error will be returned. If successful, the number of bytes written will be returned as well as a nil error. | {
"resource": ""
} | ||
c182398 | test | // LoadDirectory reads all the schema files from a directory. | {
"resource": ""
} | ||
c182399 | test | // LoadFile reads a schema document from a file. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.