_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c12800 | // wrapper around sysctl KERN_PROCARGS2
// callbacks params are optional,
// up to the caller as to which pieces of data they want | |
c12801 | // XXX copied from zsyscall_darwin_amd64.go | |
c12802 | // Initialize linux implementation of the eventListener interface | |
c12803 | // Read events from the netlink socket | |
c12804 | // Internal helper to check if pid && event is being watched | |
c12805 | // Bind our netlink socket and
// send a listen control message to the connector driver. | |
c12806 | // Send an ignore control message to the connector driver
// and close our netlink socket. | |
c12807 | // Go version of apr_strfsize | |
c12808 | // SymbolsByRune returns a map of lexer symbol names keyed by rune. | |
c12809 | // NameOfReader attempts to retrieve the filename of a reader. | |
c12810 | // ConsumeAll reads all tokens from a Lexer. | |
c12811 | // RuneToken represents a rune as a Token. | |
c12812 | // MakeSymbolTable builds a lookup table for checking token ID existence.
//
// For each symbolic name in "types", the returned map will contain the corresponding token ID as a key. | |
c12813 | // Upgrade a Lexer to a PeekingLexer with arbitrary lookahead. | |
c12814 | // Defer adds a function to be applied once a branch has been picked. | |
c12815 | // Apply deferred functions. | |
c12816 | // Branch accepts the branch as the correct branch. | |
c12817 | // Branch starts a new lookahead branch. | |
c12818 | // Stop returns true if parsing should terminate after the given "branch" failed to match. | |
c12819 | // Lookahead returns a new rewinder usable for lookahead. | |
c12820 | // LexWithScanner creates a Lexer from a user-provided scanner.Scanner.
//
// Useful if you need to customise the Scanner. | |
c12821 | // Map is an Option that configures the Parser to apply a mapping function to each Token from the lexer.
//
// This can be useful to eg. upper-case all tokens of a certain type, or dequote strings.
//
// "symbols" specifies the token symbols that the Mapper will be applied to. If empty, all tokens will be mapped. | |
c12822 | // Upper is an Option that upper-cases all tokens of the given type. Useful for case normalisation. | |
c12823 | // Elide drops tokens of the specified types. | |
c12824 | // ParseTerm returns nil if no term was found. | |
c12825 | // Parse parses a set of EBNF productions from source src.
// It returns a set of productions. Errors are reported
// for incorrect syntax and if a production is declared
// more than once; the filename is used only for error
// positions.
// | |
c12826 | // Apply some optimizations to the EBNF. | |
c12827 | // Validate the grammar against the lexer rules. | |
c12828 | // Lex uses the parser's lexer to tokenise input. | |
c12829 | // Lexer is an Option that sets the lexer to use with the given grammar. | |
c12830 | // UseLookahead allows branch lookahead up to "n" tokens.
//
// If parsing cannot be disambiguated before "n" tokens of lookahead, parsing will fail.
//
// Note that increasing lookahead has a minor performance impact, but also
// reduces the accuracy of error reporting. | |
c12831 | // CaseInsensitive allows the specified token types to be matched case-insensitively. | |
c12832 | // Recursively collect flattened indices for top-level fields and embedded fields. | |
c12833 | // Takes a type and builds a tree of nodes out of it. | |
c12834 | // A literal string.
//
// Note that for this to match, the tokeniser must be able to produce this string. For example,
// if the tokeniser only produces individual characters but the literal is "hello", or vice versa. | |
c12835 | // Begin a new token attempt. | |
c12836 | // Buffer a rune without moving the cursor. | |
c12837 | // Parse a BASIC program. | |
c12838 | // Parse a repetition. Once a repetition is encountered it will always match, so grammars
// should ensure that branches are differentiated prior to the repetition. | |
c12839 | // Attempt to transform values to given type.
//
// This will dereference pointers, and attempt to parse strings into integer values, floats, etc. | |
c12840 | // Errorf creats a new Error at the given position. | |
c12841 | // Error complies with the error interface and reports the position of an error. | |
c12842 | //Wrap return a Future that presents the wrapped value | |
c12843 | //WhenAll receives function slice and returns a Future.
//If all Futures are resolved, this Future will be resolved and return results slice.
//Otherwise will rejected with results slice returned by all Futures
//Legit types of act are same with Start function | |
c12844 | //WhenAll receives Futures slice and returns a Future.
//If all Futures are resolved, this Future will be resolved and return results slice.
//If any Future is cancelled, this Future will be cancelled.
//Otherwise will rejected with results slice returned by all Futures.
//Legit types of act are same with Start functio... | |
c12845 | //getPipe returns piped Future task function and pipe Promise by the status of current Promise. | |
c12846 | //IsCancelled returns true if the promise is cancelled, otherwise false | |
c12847 | //SetTimeout sets the future task will be cancelled
//if future is not complete before time out | |
c12848 | //GetChan returns a channel than can be used to receive result of Promise | |
c12849 | //val uses Atomic load to return state value of the Future | |
c12850 | //setResult sets the value and final status of Promise, it will only be executed for once | |
c12851 | //handleOneCallback registers a callback function | |
c12852 | //NewPromise is factory function for Promise | |
c12853 | // Handle returns a Rule that invokes the receiver, then the given events.Handler | |
c12854 | // HandleF is the functional equivalent of Handle | |
c12855 | // HandleEvent implements events.Handler for Rule | |
c12856 | // HandleEvent implements events.Handler for Rules | |
c12857 | // Error implements error; returns the message of the first error in the list. | |
c12858 | // Error2 aggregates the given error params, returning nil if both are nil.
// Use Error2 to avoid the overhead of creating a slice when aggregating only 2 errors. | |
c12859 | // IsErrorList returns true if err is a non-nil error list | |
c12860 | // MinCyclePeriod is a functional option that determines the highest frequency of master change notifications | |
c12861 | // Internal constructor function | |
c12862 | // logPanic safely executes the given func, recovering from and logging a panic if one occurs. | |
c12863 | // the first call to Detect will kickstart a connection to zookeeper. a nil change listener may
// be spec'd, result of which is a detector that will still listen for master changes and record
// leaderhip changes internally but no listener would be notified. Detect may be called more than
// once, and each time the sp... | |
c12864 | // buildEventHandler generates and returns a handler to process events received from the subscription. | |
c12865 | // logAllEvents logs every observed event; this is somewhat expensive to do | |
c12866 | // eventMetrics logs metrics for every processed API event | |
c12867 | // callMetrics logs metrics for every outgoing Mesos call | |
c12868 | // logCalls logs a specific message string when a particular call-type is observed | |
c12869 | // build a new authenticatee implementation using the given callbacks and a new transport instance | |
c12870 | // returns true when handlers are installed without error, otherwise terminates the
// authentication process. | |
c12871 | // UPIDBindingAddress determines the value of UPID.Host that will be used to build
// a Transport. If a non-nil, non-wildcard bindingAddress is specified then it will be used
// for both the UPID and Transport binding address. Otherwise hostname is resolved to an IP
// address and the UPID.Host is set to that address a... | |
c12872 | // NewMesosMessenger creates a new mesos messenger. | |
c12873 | // Send puts a message into the outgoing queue, waiting to be sent.
// With buffered channels, this will not block under moderate throughput.
// When an error is generated, the error can be communicated by placing
// a message on the incoming queue to be handled upstream. | |
c12874 | // Start starts the messenger; expects to be called once and only once. | |
c12875 | // Stop stops the messenger and clean up all the goroutines. | |
c12876 | // getMessageName returns the name of the message in the mesos manner. | |
c12877 | // NewRanges returns squashed Ranges from the given numbers. | |
c12878 | // Size returns the sum of the Size of all Ranges. | |
c12879 | // Squash merges overlapping and continuous Ranges. It assumes they're pre-sorted. | |
c12880 | // Search performs a binary search for n returning the index of the Range it was
// found at or -1 if not found. | |
c12881 | // Partition partitions Ranges around n. It returns the partitioned Ranges
// and a boolean indicating if n was found. | |
c12882 | // Remove removes a range from already coalesced ranges.
// The algorithms constructs a new vector of ranges which is then
// Squash'ed into a Ranges instance. | |
c12883 | // Compare assumes that both Ranges are already in sort-order.
// Returns 0 if rs and right are equivalent, -1 if rs is a subset of right, or else 1 | |
c12884 | // Look up an authentication provider by name, returns non-nil and true if such
// a provider is found. | |
c12885 | // New returns a new Client with the given Opts applied.
// Callers are expected to configure the URL, Do, and Codec options prior to
// invoking Do. | |
c12886 | // Apply this set of request options to the given HTTP request. | |
c12887 | // With applies the given Opts to a Client and returns itself. | |
c12888 | // Mesos returns a mesos.Client variant backed by this implementation.
// Deprecated. | |
c12889 | // buildRequest is a factory func that generates and returns an http.Request for the
// given marshaler and request options. | |
c12890 | // HandleResponse parses an HTTP response from a Mesos service endpoint, transforming the
// raw HTTP response into a mesos.Response. | |
c12891 | // Do is deprecated in favor of Send. | |
c12892 | // ErrorMapper returns am Opt that overrides the existing error mapping behavior of the client. | |
c12893 | // Endpoint returns an Opt that sets a Client's URL. | |
c12894 | // WrapDoer returns an Opt that decorates a Client's DoFunc | |
c12895 | // Do returns an Opt that sets a Client's DoFunc | |
c12896 | // Codec returns an Opt that sets a Client's Codec. | |
c12897 | // DefaultHeader returns an Opt that adds a header to an Client's headers. | |
c12898 | // HandleResponse returns a functional config option to set the HTTP response handler of the client. | |
c12899 | // RequestOptions returns an Opt that applies the given set of options to every Client request. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.