_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c182300
// CompareNitro implements comparator for Nitro instances based on its id
c182301
// DefaultConfig - Nitro configuration
c182302
// Delete an item // Delete always succeed if an item exists.
c182303
// GetNode implements lookup of an item and return its skiplist Node // This API enables to lookup an item without using a snapshot handle.
c182304
// SetKeyComparator provides key comparator for the Nitro item data
c182305
// UseMemoryMgmt provides custom memory allocator for Nitro items storage
c182306
// NewWithConfig creates a new Nitro instance based on provided configuration.
c182307
// MemoryInUse returns total memory used by the Nitro instance.
c182308
// Close shuts down the nitro instance
c182309
// NewWriter creates a Nitro writer
c182310
// SnapshotSize returns the memory used by Nitro snapshot metadata
c182311
// Encode implements Binary encoder for snapshot metadata
c182312
// Decode implements binary decoder for snapshot metadata
c182313
// 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.
c182314
// CompareSnapshot implements comparator for snapshots based on snapshot number
c182315
// GC implements manual garbage collection of Nitro snapshots.
c182316
// GetSnapshots returns the list of current live snapshots // This API is mainly for debugging purpose
c182317
// MemoryInUse returns total memory used by all Nitro instances in the current process
c182318
// CompareBS is a barrier session comparator based on seqno
c182319
// Acquire marks enter of an accessor in the skiplist
c182320
// Release marks leaving of an accessor in the skiplist
c182321
// FlushSession closes the current barrier session and starts the new session. // The caller should provide the destructor pointer for the new session.
c182322
// Apply updates the report with provided paritial stats
c182323
// AddInt64 provides atomic add
c182324
// AddUint64 provides atomic add
c182325
// Merge updates global stats with partial stats and resets partial stats
c182326
// GetStats returns skiplist stats
c182327
// NewIterator creates an iterator for skiplist
c182328
// SeekFirst moves cursor to the start
c182329
// SeekWithCmp moves iterator to a provided item by using custom comparator
c182330
// Seek moves iterator to a provided item
c182331
// Valid returns true when iterator reaches the end
c182332
// Delete removes the current item from the skiplist
c182333
// Next moves iterator to the next item
c182334
// Init - externally available init method
c182335
// FromURL converts the given URL to a folder name
c182336
// ToURL converts the given folder to an URL
c182337
// Size returns the Version 1 header size plus the size of all the offsets
c182338
// WriteTo writes the TupleHeader into the given writer.
c182339
// Read function reads configurations from the file defined in // Config.filename.
c182340
// Del function deletes a key from the configuration.
c182341
// WriteTo function writes the configuration to a new file. This function // re-organizes the configuration and deletes all the comments.
c182342
// To check this line is a section or not. If it is not a section, it returns // "".
c182343
// To check this line is a valid key-value pair or not.
c182344
// To check this line is a whole line comment or not.
c182345
// NewResponseWrapper creates a new wrapper. The passed http.ResponseWriter is // used in case the wrapper needs to be hijacked.
c182346
// Hijack tries to use the original http.ResponseWriter for hijacking. If the // original writer doesn't implement http.Hijacker, it returns an error.
c182347
// 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.
c182348
// DateFormat is used to format the timestamp.
c182349
// Logger returns a new logger to be wrapped around your main http.Handler
c182350
//GetAvailableInventory - this should return available inventory and start a long task poller
c182351
// Expiration sets the expiration time of the auth token
c182352
// Claimer is responsible for transforming a standard claims object into a // custom one.
c182353
// Issuer sets the issuer in the standart claims object.
c182354
// User sets the query key from which to obtain the user.
c182355
// Password sets the query key from which to obtain the password.
c182356
// Extractor extracts a token from a request
c182357
// 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.
c182358
// Token returns the token string stored in the request context, or an empty // string.
c182359
// Claims returns the claims stored in the request
c182360
// Used to print tokens
c182361
// NewLexer creates a new scanner from the input
c182362
// Run lexes the input by executing state functions // until the state is nil
c182363
// emit passes an item pack to the client
c182364
// skipWhitespace ignores all whitespace characters
c182365
// next advances the lexer position and returns the next rune. If the input // does not have any more runes, an `eof` is returned.
c182366
// LineNum returns the current line based on the data processed so far
c182367
// Offset determines the character offset from the beginning of the current line
c182368
// 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
c182369
// Main lexer loop
c182370
// Lexes a comment line
c182371
// New creates a new TupleType with the given namespace and type name
c182372
// AddVersion adds a version to the tuple type
c182373
// Contains determines is a field exists in the TupleType
c182374
// Offset determines the numerical offset for the given field
c182375
// Versions returns an array of versions contained in this type
c182376
//SetPrivateMeta - set a private meta data record
c182377
//SetPublicMeta - set a public metadata record
c182378
//GetRedactedVersion - returns a redacted version of this task, removing private info
c182379
// Equal - define task equality
c182380
// 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.
c182381
// 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.
c182382
// 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.
c182383
// 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.
c182384
// 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.
c182385
// 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.
c182386
// 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.
c182387
// 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.
c182388
// 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.
c182389
// NewPackageList creates a new package registry
c182390
// 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.
c182391
// Languages provides the handler with supported languages.
c182392
// Session will be used to set the current language.
c182393
//Data returns the language data stored in the request.
c182394
// URL prefixes a url string with the request language.
c182395
// Returns the terminal size
c182396
//GetRequestIDFromTaskResponse - a function to get a request id from a taskresponse object
c182397
// 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.
c182398
// LoadDirectory reads all the schema files from a directory.
c182399
// LoadFile reads a schema document from a file.