_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c177900 | test | // Cat the content at the given path. Callers need to drain and close the returned reader after usage. | {
"resource": ""
} | ||
c177901 | test | // List entries at the given path | {
"resource": ""
} | ||
c177902 | test | // Pin the given path | {
"resource": ""
} | ||
c177903 | test | // Pins returns a map of the pin hashes to their info (currently just the
// pin type, one of DirectPin, RecursivePin, or IndirectPin. A map is returned
// instead of a slice because it is easier to do existence lookup by map key
// than unordered array searching. The map is likely to be more useful to a
// client than... | {
"resource": ""
} | ||
c177904 | test | // returns ipfs version and commit sha | {
"resource": ""
} | ||
c177905 | test | // SwarmPeers gets all the swarm peers | {
"resource": ""
} | ||
c177906 | test | // SwarmConnect opens a swarm connection to a specific address. | {
"resource": ""
} | ||
c177907 | test | // DagPutOptions applies the given options to a DagPutSettings instance. | {
"resource": ""
} | ||
c177908 | test | // Pin is an option for Dag.Put which specifies whether to pin the added
// dags. Default is "false". | {
"resource": ""
} | ||
c177909 | test | // Kind is an option for Dag.Put which specifies the format that the dag
// will be added as. Default is "cbor". | {
"resource": ""
} | ||
c177910 | test | // Hash is an option for Dag.Put which specifies the hash function to use | {
"resource": ""
} | ||
c177911 | test | // AddDir adds a directory recursively with all of the files under it | {
"resource": ""
} | ||
c177912 | test | // Publish updates a mutable name to point to a given value | {
"resource": ""
} | ||
c177913 | test | // PublishWithDetails is used for fine grained control over record publishing | {
"resource": ""
} | ||
c177914 | test | // ResolveValue resolves a PlanValue as a single value based on the supplied bindvars. | {
"resource": ""
} | ||
c177915 | test | // EncodeValue encodes one bind variable value into the query. | {
"resource": ""
} | ||
c177916 | test | // skipStatement scans until the EOF, or end of statement is encountered. | {
"resource": ""
} | ||
c177917 | test | // reset clears any internal state. | {
"resource": ""
} | ||
c177918 | test | // Preview analyzes the beginning of the query using a simpler and faster
// textual comparison to identify the statement type. | {
"resource": ""
} | ||
c177919 | test | // NewPlanValue builds a sqltypes.PlanValue from an Expr. | {
"resource": ""
} | ||
c177920 | test | // StringIn is a convenience function that returns
// true if str matches any of the values. | {
"resource": ""
} | ||
c177921 | test | // NewStringArena creates an arena of the specified size. | {
"resource": ""
} | ||
c177922 | test | // NewString copies a byte slice into the arena and returns it as a string.
// If the arena is full, it returns a traditional go string. | {
"resource": ""
} | ||
c177923 | test | // SpaceLeft returns the amount of space left in the arena. | {
"resource": ""
} | ||
c177924 | test | // ParseNext parses a single SQL statement from the tokenizer
// returning a Statement which is the AST representation of the query.
// The tokenizer will always read up to the end of the statement, allowing for
// the next call to ParseNext to parse any subsequent SQL statements. When
// there are no more statements t... | {
"resource": ""
} | ||
c177925 | test | // ExprFromValue converts the given Value into an Expr or returns an error. | {
"resource": ""
} | ||
c177926 | test | // Backtick produces a backticked literal given an input string. | {
"resource": ""
} | ||
c177927 | test | // NewValue builds a Value using typ and val. If the value and typ
// don't match, it returns an error. | {
"resource": ""
} | ||
c177928 | test | // String returns a printable version of the value. | {
"resource": ""
} | ||
c177929 | test | // EncodeSQL encodes the value into an SQL statement. Can be binary. | {
"resource": ""
} | ||
c177930 | test | // WalkStatement is the top level walk function.
// If it encounters a Select, it switches to a mode
// where variables are deduped. | {
"resource": ""
} | ||
c177931 | test | // BindVariablesEqual compares two maps of bind variables. | {
"resource": ""
} | ||
c177932 | test | // New constructs a new Secure instance with supplied options. | {
"resource": ""
} | ||
c177933 | test | // Special implementation for Negroni, but could be used elsewhere. | {
"resource": ""
} | ||
c177934 | test | // FromAuthHeader is a "TokenExtractor" that takes a give request and extracts
// the JWT token from the Authorization header. | {
"resource": ""
} | ||
c177935 | test | // FromParameter returns a function that extracts the token from the specified
// query string parameter | {
"resource": ""
} | ||
c177936 | test | // FromFirst returns a function that runs multiple token extractors and takes the
// first token it finds | {
"resource": ""
} | ||
c177937 | test | // get the initial RPC containing all of our subscriptions to send to new peers | {
"resource": ""
} | ||
c177938 | test | // NewFloodsubWithProtocols returns a new floodsub-enabled PubSub objecting using the protocols specified in ps. | {
"resource": ""
} | ||
c177939 | test | // NewFloodSub returns a new PubSub object using the FloodSubRouter. | {
"resource": ""
} | ||
c177940 | test | // NewLRUBlacklist creates a new LRUBlacklist with capacity cap | {
"resource": ""
} | ||
c177941 | test | // NewRandomSub returns a new PubSub object using RandomSubRouter as the router. | {
"resource": ""
} | ||
c177942 | test | // NewGossipSub returns a new PubSub object using GossipSubRouter as the router. | {
"resource": ""
} | ||
c177943 | test | // NewPubSub returns a new PubSub management object. | {
"resource": ""
} | ||
c177944 | test | // WithValidateThrottle sets the upper bound on the number of active validation
// goroutines. | {
"resource": ""
} | ||
c177945 | test | // WithBlacklist provides an implementation of the blacklist; the default is a
// MapBlacklist | {
"resource": ""
} | ||
c177946 | test | // handleRemoveSubscription removes Subscription sub from bookeeping.
// If this was the last Subscription for a given topic, it will also announce
// that this node is not subscribing to this topic anymore.
// Only called from processLoop. | {
"resource": ""
} | ||
c177947 | test | // handleAddSubscription adds a Subscription for a particular topic. If it is
// the first Subscription for the topic, it will announce that this node
// subscribes to the topic.
// Only called from processLoop. | {
"resource": ""
} | ||
c177948 | test | // announce announces whether or not this node is interested in a given topic
// Only called from processLoop. | {
"resource": ""
} | ||
c177949 | test | // notifySubs sends a given message to all corresponding subscribers.
// Only called from processLoop. | {
"resource": ""
} | ||
c177950 | test | // seenMessage returns whether we already saw this message before | {
"resource": ""
} | ||
c177951 | test | // subscribedToMessage returns whether we are subscribed to one of the topics
// of a given message | {
"resource": ""
} | ||
c177952 | test | // msgID returns a unique ID of the passed Message | {
"resource": ""
} | ||
c177953 | test | // pushMsg pushes a message performing validation as necessary | {
"resource": ""
} | ||
c177954 | test | // validate performs validation and only sends the message if all validators succeed | {
"resource": ""
} | ||
c177955 | test | // fast path for single topic validation that avoids the extra goroutine | {
"resource": ""
} | ||
c177956 | test | // getValidators returns all validators that apply to a given message | {
"resource": ""
} | ||
c177957 | test | // Subscribe returns a new Subscription for the given topic.
// Note that subscription is not an instanteneous operation. It may take some time
// before the subscription is processed by the pubsub main loop and propagated to our peers. | {
"resource": ""
} | ||
c177958 | test | // SubscribeByTopicDescriptor lets you subscribe a topic using a pb.TopicDescriptor. | {
"resource": ""
} | ||
c177959 | test | // GetTopics returns the topics this node is subscribed to. | {
"resource": ""
} | ||
c177960 | test | // Publish publishes data to the given topic. | {
"resource": ""
} | ||
c177961 | test | // ListPeers returns a list of peers we are connected to in the given topic. | {
"resource": ""
} | ||
c177962 | test | // WithValidatorTimeout is an option that sets the topic validator timeout. | {
"resource": ""
} | ||
c177963 | test | // WithValidatorConcurrency is an option that sets topic validator throttle. | {
"resource": ""
} | ||
c177964 | test | // RegisterTopicValidator registers a validator for topic. | {
"resource": ""
} | ||
c177965 | test | // UnregisterTopicValidator removes a validator from a topic.
// Returns an error if there was no validator registered with the topic. | {
"resource": ""
} | ||
c177966 | test | // DefaultMetricPrefix is the default mapping for metrics to statsd keys.
// It uses a "tchannel" prefix for all stats. | {
"resource": ""
} | ||
c177967 | test | // MetricWithPrefix is the default mapping for metrics to statsd keys. | {
"resource": ""
} | ||
c177968 | test | // NewClient returns a json.Client used to make outbound JSON calls. | {
"resource": ""
} | ||
c177969 | test | // Call makes a JSON call, with retries. | {
"resource": ""
} | ||
c177970 | test | // CallPeer makes a JSON call using the given peer. | {
"resource": ""
} | ||
c177971 | test | // CallSC makes a JSON call using the given subchannel. | {
"resource": ""
} | ||
c177972 | test | // ReadResponse reads a http.Response from the given readers. | {
"resource": ""
} | ||
c177973 | test | // writeHeaders writes out the HTTP headers as arg2, and creates the arg3 writer. | {
"resource": ""
} | ||
c177974 | test | // ResponseWriter returns a http.ResponseWriter that will write to an underlying writer.
// It also returns a function that should be called once the handler has completed. | {
"resource": ""
} | ||
c177975 | test | // ReadHeaders reads key-value pairs encoded using WriteHeaders. | {
"resource": ""
} | ||
c177976 | test | // NewTCPRawRelay creates a relay that just pipes data from one connection
// to another directly. | {
"resource": ""
} | ||
c177977 | test | // NewClient creates a new Hyperbahn client using the given channel.
// config is the environment-specific configuration for Hyperbahn such as the list of initial nodes.
// opts are optional, and are used to customize the client. | {
"resource": ""
} | ||
c177978 | test | // Advertise advertises the service with Hyperbahn, and returns any errors on initial advertisement.
// Advertise can register multiple services hosted on the same endpoint.
// If the advertisement succeeds, a goroutine is started to re-advertise periodically. | {
"resource": ""
} | ||
c177979 | test | // Handle deserializes the JSON arguments and calls the underlying handler. | {
"resource": ""
} | ||
c177980 | test | // Port returns the actual port the server listens to | {
"resource": ""
} | ||
c177981 | test | // SetStrategy sets customized peer selection strategy. | {
"resource": ""
} | ||
c177982 | test | // Add adds a peer to the list if it does not exist, or returns any existing peer. | {
"resource": ""
} | ||
c177983 | test | // GetNew returns a new, previously unselected peer from the peer list, or nil,
// if no new unselected peer can be found. | {
"resource": ""
} | ||
c177984 | test | // Get returns a peer from the peer list, or nil if none can be found,
// will avoid previously selected peers if possible. | {
"resource": ""
} | ||
c177985 | test | // Remove removes a peer from the peer list. It returns an error if the peer cannot be found.
// Remove does not affect connections to the peer in any way. | {
"resource": ""
} | ||
c177986 | test | // Copy returns a copy of the PeerList as a map from hostPort to peer. | {
"resource": ""
} | ||
c177987 | test | // Len returns the length of the PeerList. | {
"resource": ""
} | ||
c177988 | test | // exists checks if a hostport exists in the peer list. | {
"resource": ""
} | ||
c177989 | test | // getPeerScore is called to find the peer and its score from a host port key.
// Note that at least a Read lock must be held to call this function. | {
"resource": ""
} | ||
c177990 | test | // onPeerChange is called when there is a change that may cause the peer's score to change.
// The new score is calculated, and the peer heap is updated with the new score if the score changes. | {
"resource": ""
} | ||
c177991 | test | // updatePeer is called to update the score of the peer given the existing score.
// Note that a Write lock must be held to call this function. | {
"resource": ""
} | ||
c177992 | test | // getConn treats inbound and outbound connections as a single virtual list
// that can be indexed. The peer must be read-locked. | {
"resource": ""
} | ||
c177993 | test | // GetConnection returns an active connection to this peer. If no active connections
// are found, it will create a new outbound connection and return it. | {
"resource": ""
} | ||
c177994 | test | // getConnectionRelay gets a connection, and uses the given timeout to lazily
// create a context if a new connection is required. | {
"resource": ""
} | ||
c177995 | test | // canRemove returns whether this peer can be safely removed from the root peer list. | {
"resource": ""
} | ||
c177996 | test | // addConnection adds an active connection to the peer's connection list.
// If a connection is not active, returns ErrInvalidConnectionState. | {
"resource": ""
} | ||
c177997 | test | // removeConnection will check remove the connection if it exists on connsPtr
// and returns whether it removed the connection. | {
"resource": ""
} | ||
c177998 | test | // connectionStateChanged is called when one of the peers' connections states changes.
// All non-active connections are removed from the peer. The connection will
// still be tracked by the channel until it's completely closed. | {
"resource": ""
} | ||
c177999 | test | // Connect adds a new outbound connection to the peer. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.