_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c5800
// IDs returns the ID's of all elements.
c5801
// Version returns version information from the connected database server.
c5802
// asServerRole converts the response into a ServerRole
c5803
// ServerRole returns the role of the server that answers the request.
c5804
// Gets the ID of this server in the cluster. // An error is returned when calling this to a server that is not part of a cluster.
c5805
// Validate validates the given id.
c5806
// ValidateOrEmpty validates the given id unless it is empty. // In case of empty, nil is returned.
c5807
// Collection returns the collection part of the ID.
c5808
// Key returns the key part of the ID.
c5809
// NewDocumentID creates a new document ID from the given collection, key pair.
c5810
// WithRevision is used to configure a context to make document // functions specify an explicit revision of the document using an `If-Match` condition.
c5811
// WithRevisions is used to configure a context to make multi-document // functions specify explicit revisions of the documents.
c5812
// WithReturnNew is used to configure a context to make create, update & replace document // functions return the new document into the given result.
c5813
// WithReturnOld is used to configure a context to make update & replace document // functions return the old document into the given result.
c5814
// WithEndpoint is used to configure a context that forces a request to be executed on a specific endpoint. // If you specify an endpoint like this, failover is disabled. // If you specify an unknown endpoint, an InvalidArgumentError is returned from requests.
c5815
// WithAllowDirtyReads is used in an active failover deployment to allow reads from the follower. // You can pass a reference to a boolean that will set according to wether a potentially dirty read // happened or not. nil is allowed. // This is valid for document reads, aql queries, gharial vertex and edge reads.
c5816
// WithRawResponse is used to configure a context that will make all functions store the raw response into a // buffer.
c5817
// WithResponse is used to configure a context that will make all functions store the response into the given value.
c5818
// WithImportDetails is used to configure a context that will make import document requests return // details about documents that could not be imported.
c5819
// WithIgnoreRevisions is used to configure a context to make modification // functions ignore revisions in the update. // Do not use in combination with WithRevision or WithRevisions.
c5820
// WithConfigured is used to configure a context to return the configured value of // a user grant instead of the effective grant.
c5821
// WithDBServerID is used to configure a context that includes an ID of a specific DBServer.
c5822
// WithBatchID is used to configure a context that includes an ID of a Batch. // This is used in replication functions.
c5823
// WithJobIDResponse is used to configure a context that includes a reference to a JobID // that is filled on a error-free response. // This is used in cluster functions.
c5824
// loadContextResponseValue loads generic values from the response and puts it into variables specified // via context values.
c5825
// setDirtyReadFlagIfRequired is a helper function that sets the bool reference for allowDirtyReads to the // specified value, if required and reference is not nil.
c5826
// Error returns a human readable error string
c5827
// Will make pool of gorouting workers. // numWorkers - how many workers will be created for this pool // queueLen - how many jobs can we accept until we block // // Returned object contains JobQueue reference, which you can use to send job to pool.
c5828
// OpenQueue opens a queue if one exists at the given directory. If one // does not already exist, a new queue is created.
c5829
// Dequeue removes the next item in the queue and returns it.
c5830
// Peek returns the next item in the queue without removing it.
c5831
// Close closes the LevelDB database of the queue.
c5832
// Drop closes and deletes the LevelDB database of the queue.
c5833
// init initializes the queue data.
c5834
// checkGoqueType checks if the type of Goque data structure // trying to be opened is compatible with the opener type. // // A file named 'GOQUE' within the data directory used by // the structure stores the structure type, using the constants // declared above. // // Stacks and Queues are 100% compatible with each other, while // a PriorityQueue is incompatible with both. // // Returns true if types are compatible and false if incompatible.
c5835
// OpenPrefixQueue opens a prefix queue if one exists at the given directory. // If one does not already exist, a new prefix queue is created.
c5836
// EnqueueString is a helper function for Enqueue that accepts the prefix and // value as a string rather than a byte slice.
c5837
// Dequeue removes the next item in the prefix queue and returns it.
c5838
// DequeueString is a helper function for Dequeue that accepts the prefix as a // string rather than a byte slice.
c5839
// Peek returns the next item in the given queue without removing it.
c5840
// PeekString is a helper function for Peek that accepts the prefix as a // string rather than a byte slice.
c5841
// PeekByIDString is a helper function for Peek that accepts the prefix as a // string rather than a byte slice.
c5842
// Update updates an item in the given queue without changing its position.
c5843
// UpdateString is a helper function for Update that accepts the prefix and // value as a string rather than a byte slice.
c5844
// Close closes the LevelDB database of the prefix queue.
c5845
// Drop closes and deletes the LevelDB database of the prefix queue.
c5846
// getQueue gets the unique queue for the given prefix.
c5847
// savePrefixQueue saves the given queue for the given prefix.
c5848
// save saves the main prefix queue data.
c5849
// getDataKey generates the main prefix queue data key.
c5850
// getItemByPrefixID returns an item, if found, for the given prefix and ID.
c5851
// init initializes the prefix queue data.
c5852
// generateKeyPrefixID generates a key using the given prefix and ID.
c5853
// OpenPriorityQueue opens a priority queue if one exists at the given // directory. If one does not already exist, a new priority queue is // created.
c5854
// Enqueue adds an item to the priority queue.
c5855
// Dequeue removes the next item in the priority queue and returns it.
c5856
// DequeueByPriority removes the next item in the given priority level // and returns it.
c5857
// Peek returns the next item in the priority queue without removing it.
c5858
// PeekByPriorityID returns the item with the given ID and priority without // removing it.
c5859
// Update updates an item in the priority queue without changing its // position.
c5860
// Length returns the total number of items in the priority queue.
c5861
// Close closes the LevelDB database of the priority queue.
c5862
// cmpAsc returns wehther the given priority level is higher than the // current priority level based on ascending order.
c5863
// cmpAsc returns wehther the given priority level is higher than the // current priority level based on descending order.
c5864
// resetCurrentLevel resets the current priority level of the queue // so the highest level can be found.
c5865
// findOffset finds the given offset from the current queue position // based on priority order.
c5866
// getNextItem returns the next item in the priority queue, updating // the current priority level of the queue if necessary.
c5867
// generatePrefix creates the key prefix for the given priority level.
c5868
// generateKey create a key to be used with LevelDB.
c5869
// init initializes the priority queue data.
c5870
// idToKey converts and returns the given ID to a key.
c5871
// OpenStack opens a stack if one exists at the given directory. If one // does not already exist, a new stack is created.
c5872
// Push adds an item to the stack.
c5873
// PushString is a helper function for Push that accepts a // value as a string rather than a byte slice.
c5874
// Pop removes the next item in the stack and returns it.
c5875
// Peek returns the next item in the stack without removing it.
c5876
// PeekByOffset returns the item located at the given offset, // starting from the head of the stack, without removing it.
c5877
// Update updates an item in the stack without changing its position.
c5878
// Close closes the LevelDB database of the stack.
c5879
// Drop closes and deletes the LevelDB database of the stack.
c5880
// init initializes the stack data.
c5881
//RetrieveAssertionInfo takes an encoded response and returns the AssertionInfo //contained, or an error message if an error has been encountered.
c5882
// BuildAuthURL builds redirect URL to be sent to principal
c5883
// AuthRedirect takes a ResponseWriter and Request from an http interaction and // redirects to the SAMLServiceProvider's configured IdP, including the // relayState provided, if any.
c5884
// validateResponseAttributes validates a SAML Response's tag and attributes. It does // not inspect child elements of the Response at all.
c5885
//ValidateEncodedResponse both decodes and validates, based on SP //configuration, an encoded, signed response. It will also appropriately //decrypt a response if the assertion was encrypted
c5886
// DecodeUnverifiedBaseResponse decodes several attributes from a SAML response for the purpose // of determining how to validate the response. This is useful for Service Providers which // expose a single Assertion Consumer Service URL but consume Responses from many IdPs.
c5887
// maybeDeflate invokes the passed decoder over the passed data. If an error is // returned, it then attempts to deflate the passed data before re-invoking // the decoder over the deflated data.
c5888
// parseResponse is a helper function that was refactored out so that the XML parsing behavior can be isolated and unit tested
c5889
// Decrypt decrypts and unmarshals the EncryptedAssertion.
c5890
//DecryptSymmetricKey returns the private key contained in the EncryptedKey document
c5891
//VerifyAssertionConditions inspects an assertion element and makes sure that //all SAML2 contracts are upheld.
c5892
//Validate ensures that the assertion passed is valid for the current Service //Provider.
c5893
// // Returns a pointer to an instantiates termios2 struct, based on the given // OpenOptions. Termios2 is a Linux extension which allows arbitrary baud rates // to be specified. //
c5894
// setTermios updates the termios struct associated with a serial port file // descriptor. This sets appropriate options for how the OS interacts with the // port.
c5895
// Execute is invoked by Windows
c5896
// Run runs your Service. // // Run will block until one of the signals specified in sig is received. // If sig is empty syscall.SIGINT and syscall.SIGTERM are used by default.
c5897
// NewSwitch node constructor
c5898
// NewConstant node constructor
c5899
// NewIdentical node constructor