_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c9800 | // ReadMIMEFile opens and reads a response MIME file at path.
// Returns any errors. | |
c9801 | // NewRequest returns a prepared Request ready to fetch.
// On error, returns a nil Request and the error. | |
c9802 | // Prepare prepares a Request with an appropriate Adapter.
// First resolves whois server in req.Host if not already set.
// Returns any errors. | |
c9803 | // Fetch queries a whois server and returns a Response. | |
c9804 | // Server returns the whois server and optional URL for a given query.
// Returns an error if it cannot resolve query to any known host. | |
c9805 | // Fetch sends the Request to a whois server. | |
c9806 | // FetchContext sends the Request to a whois server.
// If ctx cancels or times out before the request completes, it will return an error. | |
c9807 | // Copy returns a copy of the ScopeList. | |
c9808 | // ParentScopes returns the scopes before the one given as parameter. | |
c9809 | // Contains returns true if the ScopeList contains the given scope. | |
c9810 | // Copy returns a copy of the DefMap. | |
c9811 | // Add adds an element in the map. | |
c9812 | // Has checks if the map contains the given element. | |
c9813 | // OrderedList returns the list of elements in the order
// they were inserted. | |
c9814 | // Add adds an error in the multiErrBuilder. | |
c9815 | // Build returns an errors containing all the messages
// of the accumulated errors. If there is no error
// in the builder, it returns nil. | |
c9816 | // fill copies src in dest. dest should be a pointer to src type. | |
c9817 | // IsDefined returns true if there is a definition with the given name. | |
c9818 | // Add adds one or more definitions in the Builder.
// It returns an error if a definition can not be added. | |
c9819 | // Build creates a Container in the most generic scope
// with all the definitions registered in the Builder. | |
c9820 | // 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... | |
c9821 | // ParseFooter parses the footer from the token and returns it. | |
c9822 | // ForAudience validates that the JSONToken audience has the specified value. | |
c9823 | // IdentifiedBy validates that the JSONToken JTI has the specified value. | |
c9824 | // IssuedBy validates that the JSONToken issuer has the specified value. | |
c9825 | // Subject validates that the JSONToken subject has the specified value. | |
c9826 | // 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. | |
c9827 | // Sign implements Protocol.Sign | |
c9828 | // Verify implements Protocol.Verify | |
c9829 | // Set sets the value of a custom claim to the string value provided. | |
c9830 | // MarshalJSON implements json.Marshaler interface | |
c9831 | // 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. | |
c9832 | // 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. | |
c9833 | // Day sets the job to run every day. | |
c9834 | // Send multiple commands to server and store results.
// Timeout should already be set on the connection. | |
c9835 | // RequestInfo gets info values by name from the specified connection.
// Timeout should already be set on the connection. | |
c9836 | // Issue request and set results buffer. This method is used internally.
// The static request methods should be used instead. | |
c9837 | // NewHost initializes new host instance. | |
c9838 | // NewCluster generates a Cluster instance. | |
c9839 | // Maintains the cluster on intervals.
// All clean up code for cluster is here as well. | |
c9840 | // AddSeeds adds new hosts to the cluster.
// They will be added to the cluster on next tend call. | |
c9841 | // 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... | |
c9842 | // Adds seeds to the cluster | |
c9843 | // Finds a node by name in a list of nodes | |
c9844 | // getSameRackNode returns either a node on the same rack, or in Replica Sequence | |
c9845 | // GetRandomNode returns a random node on the cluster | |
c9846 | // GetSeeds returns a list of all seed nodes in the cluster | |
c9847 | // GetAliases returns a list of all node aliases in the cluster | |
c9848 | // GetNodeByName finds a node by name and returns an
// error if the node is not found. | |
c9849 | // Close closes all cached connections to the cluster nodes
// and stops the tend goroutine. | |
c9850 | // MigrationInProgress determines if any node in the cluster
// is participating in a data migration | |
c9851 | // WaitUntillMigrationIsFinished will block until all
// migration operations in the cluster all finished. | |
c9852 | // Password returns the password that is currently used with the cluster. | |
c9853 | // Registers my luaAerospike type to given L. | |
c9854 | // NewIndexTask initializes a task with fields needed to query server nodes. | |
c9855 | // 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. | |
c9856 | // 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. | |
c9857 | // newObjectset generates a new RecordSet instance. | |
c9858 | // newRecordset generates a new RecordSet instance. | |
c9859 | // Read reads the next record from the Recordset. If the Recordset has been
// closed, it returns ErrRecordsetClosed. | |
c9860 | // Close all streams from different nodes. A successful close return nil,
// subsequent calls to the method will return ErrRecordsetClosed. | |
c9861 | // NewClientWithPolicy generates a new Client using the specified ClientPolicy.
// If the policy is nil, the default relevant policy will be used. | |
c9862 | // 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. | |
c9863 | // GetNodeNames returns a list of active server node names in the cluster. | |
c9864 | // AppendBins works the same as Append, but avoids BinMap allocation and iteration. | |
c9865 | // PrependBins works the same as Prepend, but avoids BinMap allocation and iteration. | |
c9866 | // AddBins works the same as Add, but avoids BinMap allocation and iteration. | |
c9867 | // 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. | |
c9868 | // 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. | |
c9869 | // 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... | |
c9870 | // 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. | |
c9871 | // 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.
//... | |
c9872 | // 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 ... | |
c9873 | // 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. | |
c9874 | // 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... | |
c9875 | // 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. | |
c9876 | // 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... | |
c9877 | // 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. | |
c9878 | // DropUser removes a user from the cluster. | |
c9879 | // ChangePassword changes a user's password. Clear-text password will be hashed using bcrypt before sending to server. | |
c9880 | // GrantRoles adds roles to user's list of roles. | |
c9881 | // RevokeRoles removes roles from user's list of roles. | |
c9882 | // QueryUser retrieves roles for a given user. | |
c9883 | // QueryUsers retrieves all users and their roles. | |
c9884 | // QueryRole retrieves privileges for a given role. | |
c9885 | // QueryRoles retrieves all roles and their privileges. | |
c9886 | // CreateRole creates a user-defined role. | |
c9887 | // DropRole removes a user-defined role. | |
c9888 | // GrantPrivileges grant privileges to a user-defined role. | |
c9889 | // RevokePrivileges revokes privileges from a user-defined role. | |
c9890 | // String implements the Stringer interface for client | |
c9891 | // Stats returns internal statistics regarding the inner state of the client and the cluster. | |
c9892 | // ReadFileEncodeBase64 readfs a file from disk and encodes it as base64 | |
c9893 | // TTL converts an Expiration time from citrusleaf epoc to TTL in seconds. | |
c9894 | // BytesToHexString converts a byte slice into a hex string | |
c9895 | // LittleBytesToInt32 converts a slice into int32; only maximum of 4 bytes will be used | |
c9896 | // BytesToInt64 converts a slice into int64; only maximum of 8 bytes will be used | |
c9897 | // BytesToInt32 converts a slice into int32; only maximum of 4 bytes will be used | |
c9898 | // BytesToUint32 converts a slice into uint32; only maximum of 4 bytes will be used | |
c9899 | // BytesToInt16 converts a slice of bytes to an int16 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.