Transaction

consul4s.v1.api.Transaction
trait Transaction[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ConsulApi[F]
class ConsulClient[F]
Self type

Members list

Value members

Concrete methods

def createTransaction(txTasks: List[TxTask], dc: Option[String], consistencyMode: ConsistencyMode, token: Option[String]): F[Result[TxResults]]

PUT /txn This endpoint permits submitting a list of operations to apply to Consul inside of a transaction. If any operation fails, the transaction is rolled back and none of the changes are applied.

PUT /txn This endpoint permits submitting a list of operations to apply to Consul inside of a transaction. If any operation fails, the transaction is rolled back and none of the changes are applied.

Value parameters

consistencyMode
dc
  • Specifies the datacenter to query. This will default to the datacenter of the agent being queried. This is specified as part of the URL as a query parameter.
token
  • consul token
txTasks
  • operation list. Up to 64 operations may be present in a single transaction.

Attributes

Returns
  • transaction results. If transaction was roll-backed then errors field will not be empty/