_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c13700 | // Indeterminate satisfies ProgressDisplay interface. | |
c13701 | // Set sets the key in this context to value. | |
c13702 | // Keys returns all keys in the context. | |
c13703 | // rlPrompt returns the proper prompt for readline based on showPrompt and
// prompt members. | |
c13704 | // Push adds a new State at the front of the history. | |
c13705 | // Pop removes and returns the State at the front of the history. | |
c13706 | // Top returns the State at the front of the history without removing it. | |
c13707 | // Has returns a boolean value indicating whether a bookmark exists with the given name. | |
c13708 | // writeToFile writes the bookmarks to the file. | |
c13709 | // Download writes the asset to the given io.Writer type. | |
c13710 | // DownloadAsync downloads the asset asynchronously. | |
c13711 | // DownloadAsset copies a remote file to the given writer. | |
c13712 | // DownloadAssetAsync downloads an asset asynchronously and notifies the given channel
// when the download is complete. | |
c13713 | // New creates and returns an Error type. | |
c13714 | // NewPageNotFound creates and returns a NotFound type. | |
c13715 | // NewLinkNotFound creates and returns a LinkNotFound type. | |
c13716 | // NewAttributeNotFound creates and returns a AttributeNotFound type. | |
c13717 | // NewLocation creates and returns a Location type. | |
c13718 | // NewPageNotLoaded creates and returns a PageNotLoaded type. | |
c13719 | // NewElementNotFound creates and returns a ElementNotFound type. | |
c13720 | // NewInvalidFormValue creates and returns a InvalidFormValue type. | |
c13721 | // Input sets the value of a form field.
// it returns an ElementNotFound error if the field does not exist | |
c13722 | // File sets the value for an form input type file,
// it returns an ElementNotFound error if the field does not exists | |
c13723 | // SetFile sets the value for a form input type file.
// It will add the field to the form if necessary | |
c13724 | // Check sets the checkbox value to its active state. | |
c13725 | // UnCheck sets the checkbox value to inactive state. | |
c13726 | // IsChecked returns the current state of the checkbox | |
c13727 | // Value returns the current value of a form element whose name matches. If name is not
// found, error is returned. For multiple value form element such as select multiple,
// the first value is returned. | |
c13728 | // RemoveValue will remove a single instance of a form value whose name and value match.
// This is valuable for removing a single value from a select multiple. | |
c13729 | // SelectByOptionLabel sets the current value of a select form element acording to the
// options label. If the element is a select multiple, multiple options may be selected. | |
c13730 | // SelectByOptionValue sets the current value of a select form element acording to the
// options value. If the element is a select multiple, multiple options may be selected. | |
c13731 | // SelectValues returns the current values of a form element whose name matches. If name is not
// found, error is returned. For select multiple elements, all values are returned. | |
c13732 | // SelectLabels returns the labels for the selected options for a select form element whose name
// matches. If name is not found, error is returned. | |
c13733 | // Click submits the form by clicking the button with the given name and value. | |
c13734 | // Open requests the given URL using the GET method. | |
c13735 | // Head requests the given URL using the HEAD method. | |
c13736 | // OpenForm appends the data values to the given URL and sends a GET request. | |
c13737 | // Post requests the given URL using the POST method. | |
c13738 | // PostForm requests the given URL using the POST method with the given data. | |
c13739 | // Back loads the previously requested page.
//
// Returns a boolean value indicating whether a previous page existed, and was
// successfully loaded. | |
c13740 | // Reload duplicates the last successful request. | |
c13741 | // Bookmark saves the page URL in the bookmarks with the given name. | |
c13742 | // Click clicks on the page element matched by the given expression.
//
// Currently this is only useful for click on links, which will cause the browser
// to load the page pointed at by the link. Future versions of Surf may support
// JavaScript and clicking on elements will fire the click event. | |
c13743 | // Form returns the form in the current page that matches the given expr. | |
c13744 | // Forms returns an array of every form in the page. | |
c13745 | // Links returns an array of every link found in the page. | |
c13746 | // Images returns an array of every image found in the page. | |
c13747 | // Stylesheets returns an array of every stylesheet linked to the document. | |
c13748 | // Scripts returns an array of every script linked to the document. | |
c13749 | // SiteCookies returns the cookies for the current site. | |
c13750 | // SetCookieJar is used to set the cookie jar the browser uses. | |
c13751 | // SetAttribute sets a browser instruction attribute. | |
c13752 | // SetTransport sets the http library transport mechanism for each request.
// SetTimeout sets the timeout for requests. | |
c13753 | // SetTransport sets the http library transport mechanism for each request. | |
c13754 | // AddRequestHeader sets a header the browser sends with each request. | |
c13755 | // ResolveUrl returns an absolute URL for a possibly relative URL. | |
c13756 | // ResolveStringUrl works just like ResolveUrl, but the argument and return value are strings. | |
c13757 | // Download writes the contents of the document to the given writer. | |
c13758 | // Url returns the page URL as a string. | |
c13759 | // Body returns the page body as a string of html. | |
c13760 | // Find returns the dom selections matching the given expression. | |
c13761 | // httpGET makes an HTTP GET request for the given URL.
// When via is not nil, and AttributeSendReferer is true, the Referer header will
// be set to ref. | |
c13762 | // httpPOST makes an HTTP POST request for the given URL.
// When via is not nil, and AttributeSendReferer is true, the Referer header will
// be set to ref. | |
c13763 | // postSend sets browser state after sending a request. | |
c13764 | // shouldRedirect is used as the value to http.Client.CheckRedirect. | |
c13765 | // attributeToUrl reads an attribute from an element and returns a url. | |
c13766 | // attributeOrDefault reads an attribute and returns it or the default value when it's empty. | |
c13767 | // PKCS5Padding PKCS5 Padding | |
c13768 | // PKCS5UnPadding PKCS5 UnPadding | |
c13769 | // Errorf sends an error to Rollbar with the given level using the format string and arguments. | |
c13770 | // ErrorWithExtras asynchronously sends an error to Rollbar with the given
// severity level with extra custom data. | |
c13771 | // ErrorWithExtrasAndContext asynchronously sends an error to Rollbar with the given
// severity level with extra custom data, within the given context. | |
c13772 | // RequestError asynchronously sends an error to Rollbar with the given
// severity level and request-specific information. | |
c13773 | // RequestErrorWithExtras asynchronously sends an error to Rollbar with the given
// severity level and request-specific information with extra custom data. | |
c13774 | // RequestErrorWithExtrasAndContext asynchronously sends an error to Rollbar with the given
// severity level and request-specific information with extra custom data. | |
c13775 | // ErrorWithStackSkip asynchronously sends an error to Rollbar with the given
// severity level and a given number of stack trace frames skipped. | |
c13776 | // ErrorWithStackSkipWithExtras asynchronously sends an error to Rollbar with the given
// severity level and a given number of stack trace frames skipped with extra custom data. | |
c13777 | // ErrorWithStackSkipWithExtrasAndContext asynchronously sends an error to Rollbar with the given
// severity level and a given number of stack trace frames skipped with extra custom data, within
// the given context. | |
c13778 | // RequestErrorWithStackSkip asynchronously sends an error to Rollbar with the
// RequestErrorWithStackSkip asynchronously sends an error to Rollbar with the
// given severity level and a given number of stack trace frames skipped, in
// addition to extra request-specific information. | |
c13779 | // RequestErrorWithStackSkipWithExtras asynchronously sends an error to Rollbar
// with the given severity level and a given number of stack trace frames skipped,
// in addition to extra request-specific information and extra custom data. | |
c13780 | // RequestErrorWithStackSkipWithExtrasAndContext asynchronously sends an error to Rollbar
// with the given severity level and a given number of stack trace frames skipped,
// in addition to extra request-specific information and extra custom data, within the given context. | |
c13781 | // MessageWithExtras asynchronously sends a message to Rollbar with the given severity
// level with extra custom data. Rollbar request is asynchronous. | |
c13782 | // MessageWithExtrasAndContext asynchronously sends a message to Rollbar with the given severity
// level with extra custom data, within the given context. Rollbar request is asynchronous. | |
c13783 | // RequestMessage asynchronously sends a message to Rollbar with the given
// severity level and request-specific information. | |
c13784 | // RequestMessageWithExtras asynchronously sends a message to Rollbar with the given severity
// level with extra custom data in addition to extra request-specific information.
// Rollbar request is asynchronous. | |
c13785 | // RequestMessageWithExtrasAndContext asynchronously sends a message to Rollbar with the given severity
// level with extra custom data in addition to extra request-specific information, within the given
// context. Rollbar request is asynchronous. | |
c13786 | // remoteIP attempts to extract the real remote IP address by looking first at the headers X-Real-IP
// and X-Forwarded-For, and then falling back to RemoteAddr defined in http.Request | |
c13787 | // filterFlatten filters sensitive information like passwords from being sent to Rollbar, and
// also lifts any values with length one up to be a standalone string. The optional specialKeys map
// will force strings that exist in that map and also in values to have a single string value in the
// resulting map by takin... | |
c13788 | // flattenValues takes a map from strings to lists of strings and performs a lift
// on values which have length 1. | |
c13789 | // filterIp takes an ip address string and a capture policy and returns a possibly
// transformed ip address string. | |
c13790 | // Build an error inner-body for the given error. If skip is provided, that
// number of stack trace frames will be skipped. If the error has a Cause
// method, the causes will be traversed until nil. | |
c13791 | // builds one trace element in trace_chain | |
c13792 | // gets stack frames from errors that provide one of their own
// otherwise, builds a new stack trace | |
c13793 | // NewSyncTransport builds a synchronous transport which sends data to the Rollbar API at the
// specified endpoint using the given access token. | |
c13794 | // Send the body to Rollbar.
// Returns errors associated with the http request if any.
// If the access token has not been set or is empty then this will
// not send anything and will return nil. | |
c13795 | // New returns the default implementation of a Client.
// This uses the AsyncTransport. | |
c13796 | // NewAsync builds a Client with the asynchronous implementation of the transport interface. | |
c13797 | // NewSync builds a Client with the synchronous implementation of the transport interface. | |
c13798 | // SetToken sets the token used by this client.
// The value is a Rollbar access token with scope "post_server_item".
// It is required to set this value before any of the other functions herein will be able to work
// properly. This also configures the underlying Transport. | |
c13799 | // SetEndpoint sets the endpoint to post items to. This also configures the underlying Transport. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.