_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c173900 | // We only fill in the first 20 bytes with ripemd160 | |
c173901 | // increment nonce big-endian by 1 with wraparound. | |
c173902 | // threadsafe list of peers. | |
c173903 | // Accept connections and pass on the channel | |
c173904 | // RemoveAddress removes the address from the book. | |
c173905 | // Returns false if file does not exist.
// Panics if file is corrupt. | |
c173906 | // Save saves the book. | |
c173907 | // Dial a list of seeds asynchronously in random order | |
c173908 | // Equals reports whether na and other are the same addresses. | |
c173909 | // Dial calls net.Dial on the address. | |
c173910 | // ReachabilityTo checks whenever o can be reached from na. | |
c173911 | // OnStart implements BaseService | |
c173912 | // RequestPEX asks peer for more addresses. | |
c173913 | // Increment or initialize the msg count for the peer in the CMap | |
c173914 | // DecodeMessage implements interface registered above. | |
c173915 | // NewReader returns a new Reader that reads from r. | |
c173916 | // LogOnPanic logs the given panic and its stacktrace, prefixing each line with
// the panic ID. | |
c173917 | // Wrap returns an handler which proxies requests to the given handler, but
// handles panics by logging the stack trace and returning a 500 Internal Server
// Error to the client, if possible. | |
c173918 | // Start creates a goroutine to handle the logging IO. | |
c173919 | // New returns a new service-ready handler given an application handler.
//
// This stack application-level metrics, debug endpoints, panic recovery, and
// request logging, in that order. | |
c173920 | // Wrap wraps an HTTP handler to check the contents of client certificates.
// If CheckCertificate returns true, the request will be passed to the wrapped
// handler. If CheckCertificate returns false, it will be passed to the
// InvalidHandler or, if no InvalidHandler is specified, will return an
// empty 403 response... | |
c173921 | // GetString property. | |
c173922 | // GetInt property. | |
c173923 | // RegisterDriver registers driver with given names. | |
c173924 | // Open creates pubsub hub connected to redis server. | |
c173925 | // SendEvents streams events from specified channels as Server Sent Events packets | |
c173926 | // Unmarshal message from byte array. | |
c173927 | // Publish data to given channel. | |
c173928 | // Subscribe adds new receiver of events for given channel. | |
c173929 | // GetChannel gets or creates new pubsub channel. | |
c173930 | // Removes given channel, called by Channel.Close. | |
c173931 | // Open creates pubsub hub connected to nats server. | |
c173932 | // Publish message to given channels. | |
c173933 | // Subscribe on given channels. | |
c173934 | // IMPLEMENTATION
// MakeHub returns new instance of the pubsub hub. | |
c173935 | // successive Fibonacci numbers. | |
c173936 | // generates round robin indexes for a slice of length max
// starting from index start | |
c173937 | // Dir returns the home directory for the executing user.
// An error is returned if a home directory cannot be detected. | |
c173938 | // Ask asks cleverbot a question. | |
c173939 | // InteractionCount gets the count of interactions that have happened between the bot and user.
// Returns -1 if interactions_count is missing or parsing failed. | |
c173940 | // TimeElapsed returns approximate duration since conversation started.
// Returns -1 seconds if time_elapsed is not found or parsing failed. | |
c173941 | // History returns an array of QApair of upto 100 interactions that have happened in Session. | |
c173942 | // Bool looks up the value of a bool flag, returns false if no bool flag exists | |
c173943 | // String looks up the value of a string flag, returns "" if no string flag exists | |
c173944 | // Fail marks the task as having failed but continues execution. | |
c173945 | // Failed checks if the task has failed | |
c173946 | // Logf formats its arguments according to the format, analogous to Printf. | |
c173947 | // Error is equivalent to Log followed by Fail. | |
c173948 | // Errorf is equivalent to Logf followed by Fail. | |
c173949 | // Init initializes the Firebase client with a given root url and optional auth token.
// The initialization can also pass a mock api for testing purposes. | |
c173950 | // Value returns the value of of the current Url. | |
c173951 | // Child returns a populated pointer for a given path.
// If the path cannot be found, a null pointer is returned. | |
c173952 | // Push creates a new value under the current root url.
// A populated pointer with that value is also returned. | |
c173953 | // Update performs a partial update with the given value at the specified path. | |
c173954 | // Remove deletes the data at the given path. | |
c173955 | // Rules returns the security rules for the database. | |
c173956 | // SetRules overwrites the existing security rules with the new rules given. | |
c173957 | // SetTraceInfo sets the trace info for the trace.
// This is currently unused. | |
c173958 | // Finish declares that this trace is complete.
// The trace should not be used after calling this method. | |
c173959 | // ServeMetrics serves Prometheus metrics endpoint on the
// provided net.Listener
// Use for long-running services. For cli tools, use PushMetrics instead. | |
c173960 | // DumpMetrics returns the metrics prometheus would return when collected
// as a string, for fun and testing | |
c173961 | // NewEventLog returns an initialized EventLog with the given family and title. | |
c173962 | // Printf formats its arguments with fmt.Sprintf and adds the
// result to the event log. | |
c173963 | // Errorf is like Printf, but it marks this event as an error. | |
c173964 | // SetLogger replaces the default logger with a new
// one that writes to 'out', has 'prefix', and flags 'flag' | |
c173965 | // Inside the handler, use traces to capture request specific events and timings
// and the el member to log service specific events - like failures | |
c173966 | // TitleFromContext is a convenience function that returns the Trace's title from a context
// or an empty string if none exists | |
c173967 | // NewContext returns a new context.Context and Trace with the given family and title. The trace will
// be stored in the context. | |
c173968 | // New creates a new client with your personal API key. | |
c173969 | // NewWithClient creates a new client with your personal API key and the given http Client | |
c173970 | // Devices fetches a list of devices from PushBullet. | |
c173971 | // Device fetches an device with a given nickname from PushBullet. | |
c173972 | // PushNote sends a note to the specific device with the given title and body | |
c173973 | // PushLink sends a link to the specific device with the given title and url | |
c173974 | // PushSMS sends an SMS to the specific user from the device with the given title and url | |
c173975 | // Me returns the user object for the pushbullet user | |
c173976 | // Push pushes the data to a specific device registered with PushBullet. The
// 'data' parameter is marshaled to JSON and sent as the request body. Most
// users should call one of PusNote, PushLink, PushAddress, or PushList. | |
c173977 | // PushNote pushes a note with title and body to a specific PushBullet device. | |
c173978 | // PushNoteToChannel pushes a note with title and body to a specific PushBullet channel. | |
c173979 | // PushLink pushes a link with a title and url to a specific PushBullet device. | |
c173980 | // PushLinkToChannel pushes a link with a title and url to a specific PushBullet device. | |
c173981 | // PushSMS sends an SMS message with pushbullet | |
c173982 | // Subscription fetches an subscription with a given channel tag from PushBullet. | |
c173983 | // PushNote sends a note to the specific Channel with the given title and body | |
c173984 | // PushNote sends a link to the specific Channel with the given title, url and body | |
c173985 | // NewCachedLoader creates a Loader that will cache the provided namespace on initialization
// and return data from that cache on Get | |
c173986 | // Import takes a json byte array and inserts the key value pairs into consul prefixed by the namespace | |
c173987 | // Initialize loads the consul KV's from the namespace into cache for later retrieval | |
c173988 | // Get fetches the raw config from cache | |
c173989 | // MustGetString fetches the config and parses it into a string. Panics on failure. | |
c173990 | // MustGetBool fetches the config and parses it into a bool. Panics on failure. | |
c173991 | // MustGetInt fetches the config and parses it into an int. Panics on failure. | |
c173992 | // MustGetDuration fetches the config and parses it into a duration. Panics on failure. | |
c173993 | // NewRandomDNSBalancer will return a random balancer.DNS that looks up dns in consul. | |
c173994 | // writeServiceToCache locks specifically to alleviate load on consul some additional lock time
// is preferable to extra consul calls | |
c173995 | // Convert param string like "param1=value1;param2=value2" to mesos.Labels | |
c173996 | // SetClockSeq sets the clock sequence to the lower 14 bits of seq. Setting to
// -1 causes a new sequence to be generated. | |
c173997 | //Returns paste link string and nil if everything is ok | |
c173998 | //Returns raw paste text | |
c173999 | //ExecAndWait will execute the command using the given executor and wait until completion |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.