works.iterative.tapir
Members list
Type members
Classlikes
Create effectful methods to perform the endpoint operation.
Create effectful methods to perform the endpoint operation.
The factory takes an endpoint with correct type signature, and returns a function that can call the endpoint.
The resulting error channel is whatever the endpoint declares as the client error channel, eg. the type E of ApiError[E], which is what is reported in RequestFailure[E].
The other options - AuthenticationFailure, ServerFailure - are converted to defects to be handled at another level.
This way the client can deal only with what it can actually do something about.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ApiClientFactory.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AuthFailureclass RequestFailure[ClientError]
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ApiKeyConfig.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class LiveApiKeyGuard
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ApiKeyGuard.type
Attributes
- Supertypes
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait BaseUriPlatformSpecificclass Objecttrait Matchableclass AnyShow all
- Self type
-
BaseUri.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object extractBaseUri
Attributes
- Companion
- trait
- Supertypes
- Self type
-
BaseUriExtractor.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object BaseUri
Create effectful methods to perform the endpoint operation
Create effectful methods to perform the endpoint operation
Just a useful way to have something that will derive the client from the endpoint using other layers, like BaseUri and provided STTP Backend.
The resulting type is either
S => I => IO[E, O]if the endpoint is secure and error proneS => I => UIO[O]if the endpoint is secure and infallibleI => IO[E, O]if the endpoint is public and error proneI => UIO[O]if the endpoint is public and infallible
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object noErrorConstructor
Attributes
- Companion
- trait
- Supertypes
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait SttpClientInterpretertrait SttpClientInterpreterExtensionstrait TapirAliasestrait TapirJsonZiotrait Tapirtrait ModifyMacroSupporttrait ModifyMacroFunctorSupporttrait TapirStaticContentEndpointstrait TapirComputedInputstrait TapirExtensionsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait CustomTapirtrait SttpClientInterpretertrait SttpClientInterpreterExtensionstrait TapirAliasestrait TapirJsonZiotrait Tapirtrait ModifyMacroSupporttrait ModifyMacroFunctorSupporttrait TapirStaticContentEndpointstrait TapirComputedInputstrait TapirExtensionsclass Objecttrait Matchableclass AnyShow all
- Self type
-
CustomTapir.type
Attributes
- Supertypes
-
trait SttpClientInterpretertrait SttpClientInterpreterExtensionsclass Objecttrait Matchableclass Any
- Known subtypes
-
trait CustomTapirobject CustomTapir
- Self type
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LiveApiKeyGuard.type
Attributes
- Companion
- object
- Supertypes
-
trait CustomTapirtrait SttpClientInterpretertrait SttpClientInterpreterExtensionstrait TapirAliasestrait TapirJsonZiotrait Tapirtrait ModifyMacroSupporttrait ModifyMacroFunctorSupporttrait TapirStaticContentEndpointstrait TapirComputedInputstrait TapirExtensionstrait ClientEndpointFactoryclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object BaseUriExtractor
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ClientErrorConstructor
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ClientResultConstructor
Run a read-only source from server, publish whatever comes to a hub. Reconnect on failure.
Run a read-only source from server, publish whatever comes to a hub. Reconnect on failure.
Type parameters
- A
-
type of updates
Value parameters
- retrySchedule
-
schedule for retries, defaults to 2 seconds
- updateHub
-
hub to publish updates to
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any