-type TransactionKey struct {
- SubID uint16 // subscription id / sequence number
- TransType Action // action ongoing (CREATE/DELETE etc)
-}
-
-type TransactionXappKey struct {
- RmrEndpoint
- Xid string // xapp xid in req
-}
-
-type Transaction struct {
- tracker *Tracker // tracker instance
- Key TransactionKey // action key
- Xappkey TransactionXappKey // transaction key
- OrigParams *xapp.RMRParams // request orginal params
- RespReceived bool
- ForwardRespToXapp bool
-}
-
-func (t *Transaction) SubRouteInfo() SubRouteInfo {
- return SubRouteInfo{t.Key.TransType, t.Xappkey.RmrEndpoint.Addr, t.Xappkey.RmrEndpoint.Port, t.Key.SubID}
-}
-
-/*
-Implements a record of ongoing transactions and helper functions to CRUD the records.
-*/
+//-----------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------