_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c179700 | // Reset quickly forgets any data stored in the ring buffer. The
// data is still there, but the ring buffer will ignore it and
// overwrite those buffers as new data comes in. | |
c179701 | // constructor. NewPointerRingBuf will allocate internally
// a slice of size sliceN | |
c179702 | // TwoContig returns all readable pointers, but in two separate slices,
// to avoid copying. The two slices are from the same buffer, but
// are not contiguous. Either or both may be empty slices. | |
c179703 | // NumPage returns the number of pages in the PDF file. | |
c179704 | // Font returns the font with the given name associated with the page. | |
c179705 | // Width returns the width of the given code point. | |
c179706 | // Encoder returns the encoding between font code point sequences and UTF-8. | |
c179707 | // Interpret interprets the content in a stream as a basic PostScript program,
// pushing values onto a stack and then calling the do function to execute
// operators. The do function may push or pop values from the stack as needed
// to implement op.
//
// Interpret handles the operators "dict", "currentdict", "begin"... | |
c179708 | // Open opens a file for reading. | |
c179709 | // NewReader opens a file for reading, using the data in f with the given total size. | |
c179710 | // NewReaderEncrypted opens a file for reading, using the data in f with the given total size.
// If the PDF is encrypted, NewReaderEncrypted calls pw repeatedly to obtain passwords
// to try. If pw returns the empty string, NewReaderEncrypted stops trying to decrypt
// the file and returns an error. | |
c179711 | // Trailer returns the file's Trailer value. | |
c179712 | // Kind reports the kind of value underlying v. | |
c179713 | // newBuffer returns a new buffer reading from r at the given offset. | |
c179714 | // Set skip + limit on the current query and generates a PaginationInfo struct with info for your front end | |
c179715 | // Deletes references to a document from its related documents | |
c179716 | // Runs a cascaded delete operation with one configuration | |
c179717 | // Runs a cascaded save operation with one configuration | |
c179718 | // If you need to, you can use this to construct the data map that will be cascaded down to
// related documents. Doing this is not recommended unless the cascaded fields are dynamic. | |
c179719 | // Connect to the database using the provided config | |
c179720 | // This doesn't actually do any DB interaction, it just creates the result set so we can
// start looping through on the iterator | |
c179721 | // RawInformationQuery sends an information query request to the server. | |
c179722 | // NewClient establishes a new Client connection based on a set of Options. | |
c179723 | // Close closes the XMPP connection | |
c179724 | // startTlsIfRequired examines the server's stream features and, if STARTTLS is required or supported, performs the TLS handshake.
// f will be updated if the handshake completes, as the new stream's features are typically different from the original. | |
c179725 | // startStream will start a new XML decoder for the connection, signal the start of a stream to the server and verify that the server has
// also started the stream; if o.Debug is true, startStream will tee decoded XML data to stderr. The features advertised by the server
// will be returned. | |
c179726 | // IsEncrypted will return true if the client is connected using a TLS transport, either because it used.
// TLS to connect from the outset, or because it successfully used STARTTLS to promote a TCP connection to TLS. | |
c179727 | // Recv waits to receive the next XMPP stanza.
// Return type is either a presence notification or a chat message. | |
c179728 | // Send sends the message wrapped inside an XMPP message stanza body. | |
c179729 | // SendOrg sends the original text without being wrapped in an XMPP message stanza. | |
c179730 | // SendKeepAlive sends a "whitespace keepalive" as described in chapter 4.6.1 of RFC6120. | |
c179731 | // SendHtml sends the message as HTML as defined by XEP-0071 | |
c179732 | // xep-0045 7.2.6 | |
c179733 | // xep-0045 7.14 | |
c179734 | // AttachBuffer attaches a binary attachment. | |
c179735 | // Attach attaches a file. | |
c179736 | // Inline includes a file as an inline attachment. | |
c179737 | // Ads a Header to message | |
c179738 | // Tolist returns all the recipients of the email | |
c179739 | // Bytes returns the mail data | |
c179740 | // Send sends the message. | |
c179741 | // GetHeader processes the specified header for RFC 2047 encoded words and returns the result as a
// UTF-8 string | |
c179742 | // GetHeaderValues processes the specified header for RFC 2047 encoded words and returns all existing
// values as a list of UTF-8 strings | |
c179743 | // SetHeader sets given header name to the given value.
// If the header exists already, all existing values are replaced. | |
c179744 | // AddHeader appends given header value to header name without changing existing values.
// If the header does not exist already, it will be created. | |
c179745 | // DeleteHeader deletes given header. | |
c179746 | // AddressList returns a mail.Address slice with RFC 2047 encoded names converted to UTF-8 | |
c179747 | // Clone returns a clone of the current Envelope | |
c179748 | // ReadEnvelope is a wrapper around ReadParts and EnvelopeFromPart. It parses the content of the
// provided reader into an Envelope, downconverting HTML to plain text if needed, and sorting the
// attachments, inlines and other parts into their respective slices. Errors are collected from all
// Parts and placed into... | |
c179749 | // EnvelopeFromPart uses the provided Part tree to build an Envelope, downconverting HTML to plain
// text if needed, and sorting the attachments, inlines and other parts into their respective
// slices. Errors are collected from all Parts and placed into the Envelopes Errors slice. | |
c179750 | // parseTextOnlyBody parses a plain text message in root that has MIME-like headers, but
// only contains a single part - no boundaries, etc. The result is placed in e. | |
c179751 | // parseMultiPartBody parses a multipart message in root. The result is placed in e. | |
c179752 | // Used by Part matchers to locate the HTML body. Not inlined because it's used in multiple places. | |
c179753 | // Used by AddressList to ensure that address lists are properly delimited | |
c179754 | // Date returns a copy of MailBuilder with the specified Date header. | |
c179755 | // From returns a copy of MailBuilder with the specified From header. | |
c179756 | // Subject returns a copy of MailBuilder with the specified Subject header. | |
c179757 | // To returns a copy of MailBuilder with this name & address appended to the To header. name may be
// empty. | |
c179758 | // ToAddrs returns a copy of MailBuilder with the specified To addresses. | |
c179759 | // CC returns a copy of MailBuilder with this name & address appended to the CC header. name may be
// empty. | |
c179760 | // CCAddrs returns a copy of MailBuilder with the specified CC addresses. | |
c179761 | // ReplyTo returns a copy of MailBuilder with this name & address appended to the To header. name
// may be empty. | |
c179762 | // Header returns a copy of MailBuilder with the specified value added to the named header. | |
c179763 | // AddAttachment returns a copy of MailBuilder that includes the specified attachment. | |
c179764 | // AddFileAttachment returns a copy of MailBuilder that includes the specified attachment.
// fileName, will be populated from the base name of path. Content type will be detected from the
// path extension. | |
c179765 | // AddInline returns a copy of MailBuilder that includes the specified inline. fileName and
// contentID may be left empty. | |
c179766 | // Equals uses the reflect package to test two MailBuilder structs for equality, primarily for unit
// tests. | |
c179767 | // Encode writes this Part and all its children to the specified writer in MIME format. | |
c179768 | // encodeHeader writes out a sorted list of headers. | |
c179769 | // encodeContent writes out the content in the selected encoding. | |
c179770 | // selectTransferEncoding scans content for non-ASCII characters and selects 'b' or 'q' encoding. | |
c179771 | // setParamValue will ignore empty values | |
c179772 | // NewBase64Cleaner returns a Base64Cleaner object for the specified reader. Base64Cleaner
// implements the io.Reader interface. | |
c179773 | // decodeToUTF8Base64Header decodes a MIME header per RFC 2047, reencoding to =?utf-8b? | |
c179774 | // parseMediaType is a more tolerant implementation of Go's mime.ParseMediaType function. | |
c179775 | // fixMangledMediaType is used to insert ; separators into media type strings that lack them, and
// remove repeated parameters. | |
c179776 | // detectMultipartMessage returns true if the message has a recognized multipart Content-Type header | |
c179777 | // detectBinaryBody returns true if the mail header defines a binary body. | |
c179778 | // BreadthMatchFirst performs a breadth first search of the Part tree and returns the first part
// that causes the given matcher to return true | |
c179779 | // BreadthMatchAll performs a breadth first search of the Part tree and returns all parts that cause
// the given matcher to return true | |
c179780 | // DepthMatchFirst performs a depth first search of the Part tree and returns the first part that
// causes the given matcher to return true | |
c179781 | // DepthMatchAll performs a depth first search of the Part tree and returns all parts that causes
// the given matcher to return true | |
c179782 | // ToASCII converts unicode to ASCII by stripping accents and converting some special characters
// into their ASCII approximations. Anything else will be replaced with an underscore. | |
c179783 | // NewPart creates a new Part object. | |
c179784 | // AddChild adds a child part to either FirstChild or the end of the children NextSibling chain.
// The child may have siblings and children attached. This method will set the Parent field on
// child and all its siblings. Safe to call on nil. | |
c179785 | // TextContent indicates whether the content is text based on its content type. This value
// determines what content transfer encoding scheme to use. | |
c179786 | // setupHeaders reads the header, then populates the MIME header values for this Part. | |
c179787 | // setupContentHeaders uses Content-Type media params and Content-Disposition headers to populate
// the disposition, filename, and charset fields. | |
c179788 | // convertFromDetectedCharset attempts to detect the character set for the given part, and returns
// an io.Reader that will convert from that charset to UTF-8. If the charset cannot be detected,
// this method adds a warning to the part and automatically falls back to using
// `convertFromStatedCharset` and returns th... | |
c179789 | // Clone returns a clone of the current Part. | |
c179790 | // ReadParts reads a MIME document from the provided reader and parses it into tree of Part objects. | |
c179791 | // parseParts recursively parses a MIME multipart document and sets each Parts PartID. | |
c179792 | // UUID generates a random UUID according to RFC 4122. | |
c179793 | // NewQPCleaner returns a QPCleaner for the specified reader. | |
c179794 | // Error formats the enmime.Error as a string. | |
c179795 | // addWarning builds a severe Error and appends to the Part error slice. | |
c179796 | // addWarning builds a non-severe Error and appends to the Part error slice. | |
c179797 | // Wrap builds a byte slice from strs, wrapping on word boundaries before max chars | |
c179798 | // ConvertToUTF8String uses the provided charset to decode a slice of bytes into a normal
// UTF-8 string. | |
c179799 | // JoinAddress formats a slice of Address structs such that they can be used in a To or Cc header. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.