github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/ganjine/transaction-manager.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package ganjine
     4  
     5  import (
     6  	"../protocol"
     7  )
     8  
     9  // TransactionManager or transactional authority store
    10  type TransactionManager struct {
    11  }
    12  
    13  func (tm *TransactionManager) init() {}
    14  
    15  // GetIndexRecords return related records ID to given index.
    16  func (tm *TransactionManager) GetIndexRecords(indexHash [32]byte) (recordsID [][32]byte) {
    17  	return
    18  }
    19  
    20  // RegisterTransaction register new transaction on queue and get last record when transaction ready for this one!
    21  func (tm *TransactionManager) RegisterTransaction(indexHash [32]byte, recordID [32]byte) (Record []byte, err protocol.Error) {
    22  	return
    23  }
    24  
    25  // FinishTransaction approve transaction!
    26  func (tm *TransactionManager) FinishTransaction(indexHash [32]byte, record []byte) (err protocol.Error) {
    27  	return
    28  }