ResourceStore

io.funkode.resource.output.ResourceStore
See theResourceStore companion trait
object ResourceStore

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

inline def fetchAs[R](urn: Urn): WithResourceStreamStore[Of[R]]
inline def fetchOneAs[R](urn: Urn): WithResourceStore[Of[R]]
inline def fetchOneRel(urn: Urn, relType: String): WithResourceStore[Resource]
inline def fetchOneRelAs[R](urn: Urn, relType: String)(using evidence$4: Addressable[R]): WithResourceStore[Of[R]]
def fetchRel(urn: Urn, relType: String): WithResourceStreamStore[Resource]
inline def fetchRelAs[R](urn: Urn, relType: String)(using evidence$3: Addressable[R]): WithResourceStreamStore[Of[R]]
def inMemory: ZLayer[Any, ResourceError, ResourceStore]
inline def save[R](inline addressable: R)(using evidence$2: Addressable[R]): WithResourceStore[Of[R]]
inline def save[R](inline typedResource: Of[R]): WithResourceStore[Resource]

Extensions

Extensions

extension [R, A](resourceIO: ZIO[R, ResourceError, Of[A]])
def body: ZIO[R, ResourceError, A]
extension [R, A](resourceIO: ZIO[R, ResourceError, A])
def ifNotFound(f: NotFoundError => ZIO[R, ResourceError, A]): ZIO[R, ResourceError, A]
extension [A](inline resourceIO: WithResourceStore[Of[A]])
inline def saveIfNotFound(inline alternativeResource: => A)(using Addressable[A]): WithResourceStore[Of[A]]