mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add new convert module and sketch its integration
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
package docspell.convert
|
||||
|
||||
import fs2._
|
||||
import cats.effect._
|
||||
import docspell.common._
|
||||
|
||||
trait Conversion[F[_]] {
|
||||
|
||||
def toPDF(inType: MimeType): Pipe[F, Byte, Byte]
|
||||
|
||||
}
|
||||
|
||||
object Conversion {
|
||||
|
||||
def create[F[_]: Sync](cfg: ConvertConfig): Resource[F, Conversion[F]] =
|
||||
Resource.pure(new Conversion[F] {
|
||||
|
||||
def toPDF(inType: MimeType): Pipe[F, Byte, Byte] = {
|
||||
println(cfg)
|
||||
???
|
||||
}
|
||||
|
||||
})
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
package docspell.convert
|
||||
|
||||
case class ConvertConfig()
|
Reference in New Issue
Block a user