Connection

io.github.positionpal.connection.Connection
object Connection

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Connection.type

Members list

Extensions

Extensions

extension (result: ValidationResult[RabbitMQConfig])
def toProvider: Either[ConnectionProviderError, AmqpConnectionProvider]

Converts a ValidationResult of a RabbitMQConfig into an Either containing an AmqpConnectionProvider or a ConnectionProviderError.

Converts a ValidationResult of a RabbitMQConfig into an Either containing an AmqpConnectionProvider or a ConnectionProviderError.

Attributes

Returns

Right containing the connection provider if the configuration is valid, or Left containing a ConnectionProviderError if validation or provider creation fails.