p

bitpeace

package bitpeace

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package sql

Type Members

  1. trait Bitpeace[F[_]] extends AnyRef

    A store for binary data.

    A store for binary data.

    Binary data is given as a stream of bytes. The stream is saved in chunks, where each chunk is stored into a blob object (in contrast to use one blob for the whole data). This makes it possible to effectively retrieve partial content.

  2. case class BitpeaceConfig[F[_]](metaTable: String, chunkTable: String, mimetypeDetect: MimetypeDetect, randomIdGen: F[String]) extends Product with Serializable
  3. case class BitpeaceTables[F[_]](cfg: BitpeaceConfig[F]) extends Product with Serializable
  4. case class FileChunk(fileId: String, chunkNr: Long, chunkData: ByteVector) extends Product with Serializable

    A chunk of data.

    A chunk of data.

    The first chunk has chunkNr = 0

  5. case class FileMeta(id: String, timestamp: Instant, mimetype: Mimetype, length: Long, checksum: String, chunks: Int, chunksize: Int) extends Product with Serializable
  6. case class Mimetype(primary: String, sub: String, params: Map[String, String] = Map.empty) extends Product with Serializable

    Utility around javax.activation.Mimetype'.

  7. trait MimetypeDetect extends AnyRef

    Detect content type given bytes and optionally some hints like filename or advertised mimetype.

  8. case class MimetypeHint(filename: Option[String], advertised: Option[String]) extends Product with Serializable
  9. sealed trait Outcome[A] extends AnyRef
  10. sealed trait Range extends AnyRef

    A range for a chunk query.

    A range for a chunk query.

    Specifies how many chunks and how many bytes of selected chunks have to be skipped.

  11. trait RangeDef extends (FileMeta) => Validated[String, Range]

    When requsting a specific range of data, the offsets must be calculated given the total size and chunksize.

Value Members

  1. object Bitpeace
  2. object BitpeaceConfig extends Serializable
  3. object Compat
  4. object Mimetype extends Serializable
  5. object MimetypeDetect
  6. object MimetypeHint extends Serializable
  7. object Outcome
  8. object Range
  9. object RangeDef
  10. object TikaMimetypeDetect extends MimetypeDetect

    Use Tika for content type detection.

    Use Tika for content type detection.

    Remember to add a dependency to tika, as this is an optional feature.

Ungrouped