tamer.rest

package tamer.rest

Members list

Type members

Classlikes

trait Authentication[-R]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
final case class DecodedPage[V, S](data: List[V], nextState: Option[S])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object DecodedPage

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class Offset(offset: Int, nextIndex: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Offset

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Offset.type
case class PeriodicOffset(offset: Int, periodStart: Instant)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract case class RESTSetup[-R, K, V, SV](initialState: SV, recordFrom: (SV, V) => Record[K, V], authentication: Option[Authentication[R]], queryFor: SV => SttpRequest, pageDecoder: String => RIO[R, DecodedPage[V, SV]], filterPage: (DecodedPage[V, SV], SV) => List[V], stateFold: (DecodedPage[V, SV], SV) => URIO[R, SV], retrySchedule: Option[SttpRequest => Schedule[Any, FallibleResponse, FallibleResponse]])(implicit evidence$1: Tag[K], evidence$2: Tag[V], evidence$3: Tag[SV], evidence$4: Hashable[SV], ev: SerdesProvider[K, V, SV]) extends Setup[R & SttpClient & EphemeralSecretCache, K, V, SV]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Setup[R & SttpClient & EphemeralSecretCache, K, V, SV]
class Object
trait Matchable
class Any
Show all
object RESTSetup

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
RESTSetup.type

Types

type EphemeralSecretCache = Ref[Option[String]]
type FallibleResponse = Either[Throwable, Response[Either[String, String]]]
type SttpRequest = Request[Either[String, String]]

Value members

Concrete methods

final def restLive(options: BackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: ZioEncodingHandler): TaskLayer[SttpClient & EphemeralSecretCache]