Tx is a transactional client that is created by calling Client.Tx().
| 11 | |
| 12 | // Tx is a transactional client that is created by calling Client.Tx(). |
| 13 | type Tx struct { |
| 14 | config |
| 15 | // Alert is the client for interacting with the Alert builders. |
| 16 | Alert *AlertClient |
| 17 | // AllowList is the client for interacting with the AllowList builders. |
| 18 | AllowList *AllowListClient |
| 19 | // AllowListItem is the client for interacting with the AllowListItem builders. |
| 20 | AllowListItem *AllowListItemClient |
| 21 | // Bouncer is the client for interacting with the Bouncer builders. |
| 22 | Bouncer *BouncerClient |
| 23 | // ConfigItem is the client for interacting with the ConfigItem builders. |
| 24 | ConfigItem *ConfigItemClient |
| 25 | // Decision is the client for interacting with the Decision builders. |
| 26 | Decision *DecisionClient |
| 27 | // Event is the client for interacting with the Event builders. |
| 28 | Event *EventClient |
| 29 | // Lock is the client for interacting with the Lock builders. |
| 30 | Lock *LockClient |
| 31 | // Machine is the client for interacting with the Machine builders. |
| 32 | Machine *MachineClient |
| 33 | // Meta is the client for interacting with the Meta builders. |
| 34 | Meta *MetaClient |
| 35 | // Metric is the client for interacting with the Metric builders. |
| 36 | Metric *MetricClient |
| 37 | |
| 38 | // lazily loaded. |
| 39 | client *Client |
| 40 | clientOnce sync.Once |
| 41 | // ctx lives for the life of the transaction. It is |
| 42 | // the same context used by the underlying connection. |
| 43 | ctx context.Context |
| 44 | } |
| 45 | |
| 46 | type ( |
| 47 | // Committer is the interface that wraps the Commit method. |
nothing calls this directly
no outgoing calls
no test coverage detected