_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c9800
train
// ReadMIMEFile opens and reads a response MIME file at path. // Returns any errors.
{ "resource": "" }
c9801
train
// NewRequest returns a prepared Request ready to fetch. // On error, returns a nil Request and the error.
{ "resource": "" }
c9802
train
// Prepare prepares a Request with an appropriate Adapter. // First resolves whois server in req.Host if not already set. // Returns any errors.
{ "resource": "" }
c9803
train
// Fetch queries a whois server and returns a Response.
{ "resource": "" }
c9804
train
// Server returns the whois server and optional URL for a given query. // Returns an error if it cannot resolve query to any known host.
{ "resource": "" }
c9805
train
// Fetch sends the Request to a whois server.
{ "resource": "" }
c9806
train
// FetchContext sends the Request to a whois server. // If ctx cancels or times out before the request completes, it will return an error.
{ "resource": "" }
c9807
train
// Copy returns a copy of the ScopeList.
{ "resource": "" }
c9808
train
// ParentScopes returns the scopes before the one given as parameter.
{ "resource": "" }
c9809
train
// Contains returns true if the ScopeList contains the given scope.
{ "resource": "" }
c9810
train
// Copy returns a copy of the DefMap.
{ "resource": "" }
c9811
train
// Add adds an element in the map.
{ "resource": "" }
c9812
train
// Has checks if the map contains the given element.
{ "resource": "" }
c9813
train
// OrderedList returns the list of elements in the order // they were inserted.
{ "resource": "" }
c9814
train
// Add adds an error in the multiErrBuilder.
{ "resource": "" }
c9815
train
// Build returns an errors containing all the messages // of the accumulated errors. If there is no error // in the builder, it returns nil.
{ "resource": "" }
c9816
train
// fill copies src in dest. dest should be a pointer to src type.
{ "resource": "" }
c9817
train
// IsDefined returns true if there is a definition with the given name.
{ "resource": "" }
c9818
train
// Add adds one or more definitions in the Builder. // It returns an error if a definition can not be added.
{ "resource": "" }
c9819
train
// Build creates a Container in the most generic scope // with all the definitions registered in the Builder.
{ "resource": "" }
c9820
train
// HTTPMiddleware adds a container in the request context. // // The container injected in each request, is a new sub-container // of the app container given as parameter. // // It can panic, so it should be used with another middleware // to recover from the panic, and to log the error. // // It uses logFunc, a functi...
{ "resource": "" }
c9821
train
// ParseFooter parses the footer from the token and returns it.
{ "resource": "" }
c9822
train
// ForAudience validates that the JSONToken audience has the specified value.
{ "resource": "" }
c9823
train
// IdentifiedBy validates that the JSONToken JTI has the specified value.
{ "resource": "" }
c9824
train
// IssuedBy validates that the JSONToken issuer has the specified value.
{ "resource": "" }
c9825
train
// Subject validates that the JSONToken subject has the specified value.
{ "resource": "" }
c9826
train
// ValidAt validates whether the token is valid at the specified time, based on // the values of the IssuedAt, NotBefore and Expiration claims in the token.
{ "resource": "" }
c9827
train
// Sign implements Protocol.Sign
{ "resource": "" }
c9828
train
// Verify implements Protocol.Verify
{ "resource": "" }
c9829
train
// Set sets the value of a custom claim to the string value provided.
{ "resource": "" }
c9830
train
// MarshalJSON implements json.Marshaler interface
{ "resource": "" }
c9831
train
// NotImmediately allows recurrent jobs not to be executed immediatelly after // definition. If a job is declared hourly won't start executing until the first hour // passed.
{ "resource": "" }
c9832
train
// Run sets the job to the schedule and returns the pointer to the job so it may be // stopped or executed without waiting or an error.
{ "resource": "" }
c9833
train
// Day sets the job to run every day.
{ "resource": "" }
c9834
train
// Send multiple commands to server and store results. // Timeout should already be set on the connection.
{ "resource": "" }
c9835
train
// RequestInfo gets info values by name from the specified connection. // Timeout should already be set on the connection.
{ "resource": "" }
c9836
train
// Issue request and set results buffer. This method is used internally. // The static request methods should be used instead.
{ "resource": "" }
c9837
train
// NewHost initializes new host instance.
{ "resource": "" }
c9838
train
// NewCluster generates a Cluster instance.
{ "resource": "" }
c9839
train
// Maintains the cluster on intervals. // All clean up code for cluster is here as well.
{ "resource": "" }
c9840
train
// AddSeeds adds new hosts to the cluster. // They will be added to the cluster on next tend call.
{ "resource": "" }
c9841
train
// Tend the cluster until it has stabilized and return control. // This helps avoid initial database request timeout issues when // a large number of threads are initiated at client startup. // // If the cluster has not stabilized by the timeout, return // control as well. Do not return an error since future // databa...
{ "resource": "" }
c9842
train
// Adds seeds to the cluster
{ "resource": "" }
c9843
train
// Finds a node by name in a list of nodes
{ "resource": "" }
c9844
train
// getSameRackNode returns either a node on the same rack, or in Replica Sequence
{ "resource": "" }
c9845
train
// GetRandomNode returns a random node on the cluster
{ "resource": "" }
c9846
train
// GetSeeds returns a list of all seed nodes in the cluster
{ "resource": "" }
c9847
train
// GetAliases returns a list of all node aliases in the cluster
{ "resource": "" }
c9848
train
// GetNodeByName finds a node by name and returns an // error if the node is not found.
{ "resource": "" }
c9849
train
// Close closes all cached connections to the cluster nodes // and stops the tend goroutine.
{ "resource": "" }
c9850
train
// MigrationInProgress determines if any node in the cluster // is participating in a data migration
{ "resource": "" }
c9851
train
// WaitUntillMigrationIsFinished will block until all // migration operations in the cluster all finished.
{ "resource": "" }
c9852
train
// Password returns the password that is currently used with the cluster.
{ "resource": "" }
c9853
train
// Registers my luaAerospike type to given L.
{ "resource": "" }
c9854
train
// NewIndexTask initializes a task with fields needed to query server nodes.
{ "resource": "" }
c9855
train
// shiftContentToHead will move the unread bytes to the head of the buffer. // It will also resize the buffer if there is not enough empty capacity to read // the minimum number of bytes that are requested. // If the buffer is empty, head and tail will be reset to the beginning of the buffer.
{ "resource": "" }
c9856
train
// readConn will read the minimum minLength number of bytes from the connection. // It will read more if it has extra empty capacity in the buffer.
{ "resource": "" }
c9857
train
// newObjectset generates a new RecordSet instance.
{ "resource": "" }
c9858
train
// newRecordset generates a new RecordSet instance.
{ "resource": "" }
c9859
train
// Read reads the next record from the Recordset. If the Recordset has been // closed, it returns ErrRecordsetClosed.
{ "resource": "" }
c9860
train
// Close all streams from different nodes. A successful close return nil, // subsequent calls to the method will return ErrRecordsetClosed.
{ "resource": "" }
c9861
train
// NewClientWithPolicy generates a new Client using the specified ClientPolicy. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9862
train
// NewClientWithPolicyAndHost generates a new Client the specified ClientPolicy and // sets up the cluster using the provided hosts. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9863
train
// GetNodeNames returns a list of active server node names in the cluster.
{ "resource": "" }
c9864
train
// AppendBins works the same as Append, but avoids BinMap allocation and iteration.
{ "resource": "" }
c9865
train
// PrependBins works the same as Prepend, but avoids BinMap allocation and iteration.
{ "resource": "" }
c9866
train
// AddBins works the same as Add, but avoids BinMap allocation and iteration.
{ "resource": "" }
c9867
train
// BatchExists determines if multiple record keys exist in one batch request. // The returned boolean array is in positional order with the original key array order. // The policy can be used to specify timeouts. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9868
train
// GetHeader reads a record generation and expiration only for specified key. // Bins are not read. // The policy can be used to specify timeouts. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9869
train
// BatchGetHeader reads multiple record header data for specified keys in one batch request. // The returned records are in positional order with the original key array order. // If a key is not found, the positional record will be nil. // The policy can be used to specify timeouts. // If the policy is nil, the default...
{ "resource": "" }
c9870
train
// ScanNode reads all records in specified namespace and set for one node only. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9871
train
// RegisterUDF registers a package containing user defined functions with server. // This asynchronous server call will return before command is complete. // The user can optionally wait for command completion by using the returned // RegisterTask instance. // // This method is only supported by Aerospike 3 servers. //...
{ "resource": "" }
c9872
train
// RemoveUDF removes a package containing user defined functions in the server. // This asynchronous server call will return before command is complete. // The user can optionally wait for command completion by using the returned // RemoveTask instance. // // This method is only supported by Aerospike 3 servers. // If ...
{ "resource": "" }
c9873
train
// ListUDF lists all packages containing user defined functions in the server. // This method is only supported by Aerospike 3 servers. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9874
train
// ExecuteUDFNode applies user defined function on records that match the statement filter on the specified node. // Records are not returned to the client. // This asynchronous server call will return before command is complete. // The user can optionally wait for command completion by using the returned // ExecuteTas...
{ "resource": "" }
c9875
train
// QueryNode executes a query on a specific node and returns a recordset. // The caller can concurrently pop records off the channel through the // record channel. // // This method is only supported by Aerospike 3 servers. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9876
train
// CreateIndex creates a secondary index. // This asynchronous server call will return before the command is complete. // The user can optionally wait for command completion by using the returned // IndexTask instance. // This method is only supported by Aerospike 3 servers. // If the policy is nil, the default relevan...
{ "resource": "" }
c9877
train
// DropIndex deletes a secondary index. It will block until index is dropped on all nodes. // This method is only supported by Aerospike 3 servers. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c9878
train
// DropUser removes a user from the cluster.
{ "resource": "" }
c9879
train
// ChangePassword changes a user's password. Clear-text password will be hashed using bcrypt before sending to server.
{ "resource": "" }
c9880
train
// GrantRoles adds roles to user's list of roles.
{ "resource": "" }
c9881
train
// RevokeRoles removes roles from user's list of roles.
{ "resource": "" }
c9882
train
// QueryUser retrieves roles for a given user.
{ "resource": "" }
c9883
train
// QueryUsers retrieves all users and their roles.
{ "resource": "" }
c9884
train
// QueryRole retrieves privileges for a given role.
{ "resource": "" }
c9885
train
// QueryRoles retrieves all roles and their privileges.
{ "resource": "" }
c9886
train
// CreateRole creates a user-defined role.
{ "resource": "" }
c9887
train
// DropRole removes a user-defined role.
{ "resource": "" }
c9888
train
// GrantPrivileges grant privileges to a user-defined role.
{ "resource": "" }
c9889
train
// RevokePrivileges revokes privileges from a user-defined role.
{ "resource": "" }
c9890
train
// String implements the Stringer interface for client
{ "resource": "" }
c9891
train
// Stats returns internal statistics regarding the inner state of the client and the cluster.
{ "resource": "" }
c9892
train
// ReadFileEncodeBase64 readfs a file from disk and encodes it as base64
{ "resource": "" }
c9893
train
// TTL converts an Expiration time from citrusleaf epoc to TTL in seconds.
{ "resource": "" }
c9894
train
// BytesToHexString converts a byte slice into a hex string
{ "resource": "" }
c9895
train
// LittleBytesToInt32 converts a slice into int32; only maximum of 4 bytes will be used
{ "resource": "" }
c9896
train
// BytesToInt64 converts a slice into int64; only maximum of 8 bytes will be used
{ "resource": "" }
c9897
train
// BytesToInt32 converts a slice into int32; only maximum of 4 bytes will be used
{ "resource": "" }
c9898
train
// BytesToUint32 converts a slice into uint32; only maximum of 4 bytes will be used
{ "resource": "" }
c9899
train
// BytesToInt16 converts a slice of bytes to an int16
{ "resource": "" }