bitpeace
package bitpeace
- Alphabetic
- Public
- Protected
Type Members
- 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.
- case class BitpeaceConfig[F[_]](metaTable: String, chunkTable: String, mimetypeDetect: MimetypeDetect, randomIdGen: F[String]) extends Product with Serializable
- case class BitpeaceTables[F[_]](cfg: BitpeaceConfig[F]) extends Product with Serializable
- 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
- case class FileMeta(id: String, timestamp: Instant, mimetype: Mimetype, length: Long, checksum: String, chunks: Int, chunksize: Int) extends Product with Serializable
- case class Mimetype(primary: String, sub: String, params: Map[String, String] = Map.empty) extends Product with Serializable
Utility around
javax.activation.Mimetype'.
- trait MimetypeDetect extends AnyRef
Detect content type given bytes and optionally some hints like filename or advertised mimetype.
- case class MimetypeHint(filename: Option[String], advertised: Option[String]) extends Product with Serializable
- sealed trait Outcome[A] extends AnyRef
- 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.
- 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
- object Bitpeace
- object BitpeaceConfig extends Serializable
- object Compat
- object Mimetype extends Serializable
- object MimetypeDetect
- object MimetypeHint extends Serializable
- object Outcome
- object Range
- object RangeDef
- 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.