Reader reads bytes from a blob. It implements io.ReadSeekCloser, and must be closed after reads are finished.

Hierarchy

  • Reader

Methods

  • As converts i to driver-specific types. See https://gocloud.dev/concepts/as/ for background information, the "As" examples in this package for examples, and the driver package documentation for the specific types supported for that driver.

    Parameters

    • i: {}

      Returns boolean

    • ContentType returns the MIME type of the blob.

      Returns string

    • Size returns the size of the blob content in bytes.

      Returns number

    • WriteTo reads from r and writes to w until there's no more data or an error occurs. The return value is the number of bytes written to w.

      It implements the io.WriterTo interface.

      Parameters

      Returns number

    Generated using TypeDoc