_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c11900
// NewSentryHook creates a hook to be added to an instance of logger // and initializes the raven client. // This method sets the timeout to 100 milliseconds.
c11901
// NewWithTagsSentryHook creates a hook with tags to be added to an instance // of logger and initializes the raven client. This method sets the timeout to // 100 milliseconds.
c11902
// NewWithClientSentryHook creates a hook using an initialized raven client. // This method sets the timeout to 100 milliseconds.
c11903
// NewAsyncSentryHook creates a hook same as NewSentryHook, but in asynchronous // mode.
c11904
// NewAsyncWithTagsSentryHook creates a hook same as NewWithTagsSentryHook, but // in asynchronous mode.
c11905
// NewAsyncWithClientSentryHook creates a hook same as NewWithClientSentryHook, // but in asynchronous mode.
c11906
// Flush waits for the log queue to empty. This function only does anything in // asynchronous mode.
c11907
// AddExtraFilter adds a custom filter function.
c11908
// AddErrorHandler adds a error handler function used when Sentry returns error.
c11909
// formatData returns value as a suitable format.
c11910
// GetSymbolPointer takes a symbol name and returns a pointer to the symbol.
c11911
// Close closes a LibHandle.
c11912
// DeleteCookies effectively deletes all named cookies // by wiping all data and setting to expire immediately.
c11913
// NewLogFormatter is a helper to produce a new LogFormatter struct. It uses the // golang log package to actually do the logging work so that logs look similar.
c11914
// Format builds a log message for the LogFormatter. The LogLevel is ignored.
c11915
// Format does nothing.
c11916
// Char returns a single-character representation of the log level.
c11917
// Update using the given string value. Fulfills the flag.Value interface.
c11918
// ParseLevel translates some potential loglevel strings into their corresponding levels.
c11919
// SetGlobalLogLevel sets the log level for all packages in all repositories // registered with capnslog.
c11920
// GetRepoLogger may return the handle to the repository's set of packages' loggers.
c11921
// MustRepoLogger returns the handle to the repository's packages' loggers.
c11922
// SetRepoLogLevel sets the log level for all packages in the repository.
c11923
// ParseLogLevelConfig parses a comma-separated string of "package=loglevel", in // order, and returns a map of the results, for use in SetLogLevel.
c11924
// SetFormatter sets the formatting function for all logs.
c11925
// NewPackageLogger creates a package logger object. // This should be defined as a global var in your package, referencing your repo.
c11926
// NewCopyProgressPrinter returns a new CopyProgressPrinter
c11927
// AddCopy adds a copy for this CopyProgressPrinter to perform. An io.Copy call // will be made to copy bytes from reader to dest, and name and size will be // used to label the progress bar and display how much progress has been made. // If size is 0, the total size of the reader is assumed to be unknown. // AddCopy c...
c11928
// PrintAndWait will print the progress for each copy operation added with // AddCopy to printTo every printInterval. This will continue until every added // copy is finished, or until cancel is written to. // PrintAndWait may only be called once; any subsequent calls will immediately // return ErrAlreadyStarted. Afte...
c11929
// ByteUnitStr pretty prints a number of bytes.
c11930
// MergeQuery appends additional query values to an existing URL.
c11931
// SetFlagsFromEnvFile iterates the given flagset and if any flags are not // already set it attempts to set their values from the given env file. Env // files may have KEY=VALUE lines where the environment variable names are // in UPPERCASE, prefixed by the given PREFIX, and dashes are replaced by // underscores. For ...
c11932
// SetLevel allows users to change the current logging level.
c11933
// LevelAt checks if the given log level will be outputted under current setting.
c11934
// Log a formatted string at any level between ERROR and TRACE
c11935
// Log a message at any level between ERROR and TRACE
c11936
// log stdlib compatibility
c11937
// Panic and fatal
c11938
// SetCurrentProgress sets the progress of this ProgressBar. The progress must // be between 0 and 1 inclusive.
c11939
// GetDone returns whether or not this progress bar is done
c11940
// GetPrintBefore gets the text printed on the line before the progress bar.
c11941
// SetPrintBefore sets the text printed on the line before the progress bar.
c11942
// GetPrintAfter gets the text printed on the line after the progress bar.
c11943
// SetPrintAfter sets the text printed on the line after the progress bar.
c11944
// AddProgressBar will create a new ProgressBar, register it with this // ProgressBarPrinter, and return it. This must be called at least once before // PrintAndWait is called.
c11945
// Print will print out progress information for each ProgressBar that has been // added to this ProgressBarPrinter. The progress will be written to printTo, // and if printTo is a terminal it will draw progress bars. AddProgressBar // must be called at least once before Print is called. If printing to a // terminal, ...
c11946
// moveCursorUp moves the cursor up numLines in the terminal
c11947
// isTerminal returns True when w is going to a tty, and false otherwise.
c11948
// NewStandardEtcdConfigManager returns a new ConfigManager backed by etcd.
c11949
// NewStandardConsulConfigManager returns a new ConfigManager backed by consul.
c11950
// NewEtcdConfigManager returns a new ConfigManager backed by etcd. // Data will be encrypted.
c11951
// NewConsulConfigManager returns a new ConfigManager backed by consul. // Data will be encrypted.
c11952
// Get retrieves and decodes a secconf value stored at key.
c11953
// Get retrieves a value stored at key. // convenience function, no additional value provided over // `etcdctl`
c11954
// List retrieves and decodes all secconf value stored under key.
c11955
// List retrieves all values under key. // convenience function, no additional value provided over // `etcdctl`
c11956
// Deocde decodes data using the secconf codec.
c11957
// Encode encodes data to a base64 encoded using the secconf codec. // data is encrypted with all public keys found in the supplied keyring.
c11958
// ConvertFieldNames takes in any interface that inplements SObject and a comma separated list of json field names. // It converts the json field names to the force struct tag stated equivalent.
c11959
// Helper function used in ConvertFieldNames
c11960
// Use the Query resource to execute a SOQL query that returns all the results in a single response, // or if needed, returns part of the results and an identifier used to retrieve the remaining results.
c11961
// Use the QueryAll resource to execute a SOQL query that includes information about records that have // been deleted because of a merge or delete. Use QueryAll rather than Query, because the Query resource // will automatically filter out items that have been deleted.
c11962
// nextValue splits data after the next whole JSON value, // returning that value and the bytes that follow it as separate slices. // scan is passed in for use by nextValue to avoid an allocation.
c11963
// Delete issues a DELETE to the specified path with the given payload
c11964
// saveError saves the first err it is called with, // for reporting at the end of the unmarshal.
c11965
// String lets us see file information
c11966
// PathEscape escapes all segemnts of a given path
c11967
// Join joins two paths
c11968
// String pulls a string out of our io.Reader
c11969
// NewClient creates a new instance of client
c11970
// SetTransport exposes the ability to define custom transports
c11971
// Connect connects to our dav server
c11972
// ReadDir reads the contents of a remote directory
c11973
// Stat returns the file stats for a specified path
c11974
// RemoveAll removes remote files
c11975
// Mkdir makes a directory
c11976
// MkdirAll like mkdir -p, but for webdav
c11977
// Rename moves a file from A to B
c11978
// Read reads the contents of a remote file
c11979
// ReadStream reads the stream for a given path
c11980
// Write writes data to a given path
c11981
// WriteStream writes a stream
c11982
// Fanout receives from the given in channel and forwards the data to the first // non-blocking out channel. Fanout returns when in has been closed.
c11983
// Funnel receives from the first non-blocking in channel and forwards it to the // given out channel. Funnel returns when all in channels have been closed.
c11984
// Turnout multiplexes data between the list of in and out channels. The data of // the first non-blocking in channel will be forwarded to the first non-blocking // out channel. Turnout returns when all in channels have been closed.
c11985
// WritePidFile writes this a process id into a file. // An error will be returned if the file already exists.
c11986
// WritePidFileForced writes this a process id into a file. // An existing file will be overwritten.
c11987
// GetPidFromFile tries loads the content of a pid file. // A pidfile is expected to contain only an integer with a valid process id.
c11988
// GetProcFromFile utilizes GetPidFromFile to create a os.Process handle for // the pid contained in the given pid file.
c11989
// Swap exchanges the values stored at indexes a and b
c11990
// IsDirectory returns true if a given path points to a directory.
c11991
// CommonPath returns the longest common path of both paths given.
c11992
// FileCRC32 returns the checksum of a given file
c11993
// NewStopListener creates a new, stoppable TCP server connection. // Address needs to be cmpliant to net.Listen.
c11994
// Accept is analogous to net.TCPListener.Accept but may return a connection // closed error if the connection was requested to shut down.
c11995
// Close requests a connection close on this listener
c11996
// ChownByName is a wrapper around ChownId that allows changing user and group by name.
c11997
// ChownId is a wrapper around os.Chown that allows changing user and group // recursively if given a directory.
c11998
// Chmod is a wrapper around os.Chmod that allows changing rights recursively // if a directory is given.
c11999
// IsSymlink returns true if a file is a symlink