_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c15200 | // SetListenAddress for exposing metrics on address. If not set, it will be exposed at the
// same address of the gin engine that is being used | |
c15201 | // SetMetricsPath set metrics paths | |
c15202 | // SetMetricsPathWithAuth set metrics paths with authentication | |
c15203 | // NewMetric associates prometheus.Collector based on Metric.Type | |
c15204 | // Use adds the middleware to a gin engine. | |
c15205 | // UseWithAuth adds the middleware to a gin engine with BasicAuth. | |
c15206 | // HandlerFunc defines handler function for middleware | |
c15207 | // finndBlice looks for a blice in the trie starting from the root and
// returns a pointer to the node representing the end of the blice. If
// the blice is not found it returns nil. | |
c15208 | // buildTrie builds the fundamental trie structure from a set of
// blices. | |
c15209 | // NewMatcher creates a new Matcher used to match against a set of
// blices | |
c15210 | // Match searches in for blices and returns all the blices found as
// indexes into the original dictionary | |
c15211 | // stopHandler stops the fetcher if the stopurl is reached. Otherwise it dispatches
// the call to the wrapped Handler. | |
c15212 | // logHandler prints the fetch information and dispatches the call to the wrapped Handler. | |
c15213 | // NewHandlerCmd creates a HandlerCmd for the provided request and callback
// handler function. | |
c15214 | // Handle is the Handler interface implementation for the HandlerFunc type. | |
c15215 | // NewMux returns an initialized Mux. | |
c15216 | // Handle is the Handler interface implementation for Mux. It dispatches the calls
// to the matching Handler. | |
c15217 | // HandleError registers a Handler for a specific error value. Multiple calls
// with the same error value override previous calls. As a special case, a nil
// error value registers a Handler for any error that doesn't have a specific
// Handler. | |
c15218 | // match indicates if the response Handler matches the provided response, and if so,
// and if a path criteria is specified, it also indicates the length of the path match. | |
c15219 | // Status sets a criteria based on the Status code of the response for the Response Handler.
// Its Handler will only be called if the response has this status code. | |
c15220 | // StatusRange sets a criteria based on the Status code of the response for the Response Handler.
// Its Handler will only be called if the response has a status code between the min and max.
// If min is greater than max, the values are switched. | |
c15221 | // Scheme sets a criteria based on the scheme of the URL for the Response Handler. Its Handler
// will only be called if the scheme of the URL matches exactly the specified scheme. | |
c15222 | // Host sets a criteria based on the host of the URL for the Response Handler. Its Handler
// will only be called if the host of the URL matches exactly the specified host. | |
c15223 | // Path sets a criteria based on the path of the URL for the Response Handler. Its Handler
// will only be called if the path of the URL starts with this path. Longer matches
// have priority over shorter ones. | |
c15224 | // Custom sets a criteria based on a function that receives the HTTP response
// and returns true if the matcher should be used to handle this response,
// false otherwise. | |
c15225 | // Handler sets the Handler to be called when this Response Handler is the match for
// a given response. It registers the Response Handler in its parent Mux. | |
c15226 | // New returns an initialized Fetcher. | |
c15227 | // Close closes the Queue so that no more Commands can be sent. It blocks until
// the Fetcher drains all pending commands. After the call, the Fetcher is stopped.
// Attempts to enqueue new URLs after Close has been called will always result in
// a ErrQueueClosed error. | |
c15228 | // Cancel closes the Queue and drains the pending commands without processing
// them, allowing for a fast "stop immediately"-ish operation. | |
c15229 | // Send enqueues a Command into the Fetcher. If the Queue has been closed, it
// returns ErrQueueClosed. The Command's URL must have a Host. | |
c15230 | // SendString enqueues a method and some URL strings into the Fetcher. It returns an error
// if the URL string cannot be parsed, or if the Queue has been closed.
// The first return value is the number of URLs successfully enqueued. | |
c15231 | // SendStringHead enqueues the URL strings to be fetched with a HEAD method.
// It returns an error if the URL string cannot be parsed, or if the Queue has been closed.
// The first return value is the number of URLs successfully enqueued. | |
c15232 | // SendStringGet enqueues the URL strings to be fetched with a GET method.
// It returns an error if the URL string cannot be parsed, or if the Queue has been closed.
// The first return value is the number of URLs successfully enqueued. | |
c15233 | // Start starts the Fetcher, and returns the Queue to use to send Commands to be fetched. | |
c15234 | // Debug returns the channel to use to receive the debugging information. It is not intended
// to be used by package users. | |
c15235 | // processQueue runs the queue in its own goroutine. | |
c15236 | // Goroutine for a host's worker, processing requests for all its URLs. | |
c15237 | // Get the robots.txt User-Agent-specific group. | |
c15238 | // Call the Handler for this Command. Closes the response's body. | |
c15239 | // Prepare and execute the request for this Command. | |
c15240 | // sliceIQ creates an infinite buffered channel taking input on
// in and sending output to next. SliceIQ should be run in its
// own goroutine. | |
c15241 | // NewPQueue creates a new priority queue with the provided pqtype
// ordering type | |
c15242 | // Push the value item into the priority queue with provided priority. | |
c15243 | // Size returns the elements present in the priority queue count | |
c15244 | // Check queue is empty | |
c15245 | // NewCappedDeque creates a Deque with the specified capacity limit. | |
c15246 | // Size returns the actual deque size | |
c15247 | // Capacity returns the capacity of the deque, or -1 if unlimited | |
c15248 | // Empty checks if the deque is empty | |
c15249 | // Full checks if the deque is full | |
c15250 | // functions to convert a core.Task to a Task | |
c15251 | // SecurityTLSEnabled generates security object for securing gRPC communication | |
c15252 | // SecurityTLSExtended generates security object for securing gRPC communication.
// This function accepts also a list of CA cert paths for verifying TLS participant's
// identity. | |
c15253 | // NewCollectorGrpcClient returns a collector gRPC Client. | |
c15254 | // NewStreamCollectorGrpcClient returns a stream collector gRPC client | |
c15255 | // NewProcessorGrpcClient returns a processor gRPC Client. | |
c15256 | // NewPublisherGrpcClient returns a publisher gRPC Client. | |
c15257 | // newPluginGrpcClient returns a configured gRPC Client. | |
c15258 | // GetConfigPolicy returns a ConfigPolicyTree for testing | |
c15259 | // Run before every command | |
c15260 | // Checks if a tribe command was issued when tribe mode was not
// enabled on the specified snapteld instance. | |
c15261 | // Select selects an available plugin using the least-recently-used strategy. | |
c15262 | // Remove selects a plugin
// Since there is no state to cleanup we only need to return the selected plugin | |
c15263 | // ListMembers retrieves a list of tribe members through an HTTP GET call.
// A list of tribe member returns if it succeeds. Otherwise, an error is returned. | |
c15264 | // GetMember retrieves the tribe member given a member name.
// The request is an HTTP GET call. The corresponding tribe member object returns
// if it succeeds. Otherwise, an error is returned. | |
c15265 | // ListAgreements retrieves a list of a tribe agreements through an HTTP GET call.
// A list of tribe agreement map returns if it succeeds. Otherwise, an error is returned. | |
c15266 | // AddAgreement adds a tribe agreement giving an agreement name into tribe agreement list
// through an HTTP POST call. A map of tribe agreements with the newly added named agreement
// returns if it succeeds. Otherwise, an error is returned. Note that the newly added agreement
// has no effect unless members join the ... | |
c15267 | // DeleteAgreement removes a tribe agreement giving an agreement name from the tribe agreement list
// through an HTTP DELETE call. A map of tribe agreements with the specified agreement removed returns
// if it succeeds. Otherwise, an error is returned. Note deleting an agreement removes the agreement
// from the trib... | |
c15268 | // GetAgreement retrieves a tribe agreement given an agreement name through an HTTP GET call.
// A tribe agreement returns if it succeeded. Otherwise, an error is returned. | |
c15269 | // JoinAgreement adds a tribe member into the agreement given the agreement name and the member name.
// It is an HTTP PUT request. The agreement with the newly added member returns if it succeeds.
// Otherwise, an error is returned. Note that dual directional agreement replication happens automatically
// through the ... | |
c15270 | // LeaveAgreement removes a member from the agreement given the agreement and member names through
// an HTTP DELETE call. The agreement with the removed member returns if it succeeds.
// Otherwise, an error is returned. For example, it is useful to leave an agreement for a member node repair. | |
c15271 | // Convert core.Namespace to common.Namespace protobuf message | |
c15272 | // Convert common.Metric to core.Metric | |
c15273 | // Convert common.Namespace protobuf message to core.Namespace | |
c15274 | // Convert core.SubscribedPlugin to SubscribedPlugin protobuf message | |
c15275 | // Convert from a SubscribedPlugin protobuf message to core.SubscribedPlugin | |
c15276 | // Convert from core.Plugin to Plugin protobuf message | |
c15277 | // Convert from Plugin protobuf message to core.Plugin | |
c15278 | // Converts Plugin protobuf message to core.Plugin | |
c15279 | // Converts slice of plugin protobuf messages to core.Plugins | |
c15280 | // Converts slice of SubscribedPlugin Messages to core.SubscribedPlugins | |
c15281 | // Converts core.SubscribedPlugins to protobuf messages | |
c15282 | // Converts configMaps to ConfigDataNode | |
c15283 | // Converts ConfigDataNode to ConfigMap protobuf message | |
c15284 | // Converts SnapError protobuf messages to serror.Snaperrors | |
c15285 | // Converts a single SnapError protobuf message to SnapError | |
c15286 | // Returns the fields from a SnapError protobuf message | |
c15287 | // Returns the managesMetric instance that maps to given
// string. If an empty string is given, will instead return
// the local instance passed in on initialization. | |
c15288 | // WmapToWorkflow attempts to convert a wmap.WorkflowMap to a schedulerWorkflow instance. | |
c15289 | // Start starts a workflow | |
c15290 | // workJobs takes a slice of process and publish nodes and submits jobs for each for a task.
// It then iterates down any process nodes to submit their child node jobs for the task | |
c15291 | // GetClientConnection returns a grcp.ClientConn that is unsecured | |
c15292 | // IsTLSEnabled returns true if config values enable TLS in plugin communication | |
c15293 | // WritePEMFile writes block of bytes into a PEM formatted file with given header. | |
c15294 | // MakeCACertKeyPair generates asymmetric private key and certificate
// for CA, suitable for signing certificates | |
c15295 | // MakeSubjCertKeyPair generates a private key and a certificate for subject
// suitable for securing TLS communication | |
c15296 | // GetConfigTree converts config data for collection node in wmap into a proper cdata.ConfigDataTree | |
c15297 | // merge the command-line options into the current task | |
c15298 | // and define an implementation for that type that performs the schema validation | |
c15299 | //NewTask creates a Task |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.