Documentation ¶
Index ¶
- type Props
- type Service
- func (s *Service) AddTx(tx *statechain.Transaction) error
- func (s *Service) GatherPendingTransactions() ([]*statechain.Transaction, error)
- func (s *Service) GetHeadBlock() (mainchain.Block, error)
- func (s *Service) GetPendingMainchainBlocks() ([]*mainchain.Block, error)
- func (s *Service) GetTx(hash string) (*statechain.Transaction, error)
- func (s *Service) GetTxs(hashes []string) ([]*statechain.Transaction, error)
- func (s *Service) HasTx(hash string) (bool, error)
- func (s *Service) Props() Props
- func (s *Service) RemovePendingMainchainBlock(blockHash string) error
- func (s *Service) RemovePendingMainchainBlocks(blockHashes []string) error
- func (s *Service) RemoveTx(hash string) error
- func (s *Service) RemoveTxs(hashes []string) error
- func (s *Service) SetHeadBlock(block *mainchain.Block) error
- func (s *Service) SetPendingMainchainBlock(block *mainchain.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service ...
func (*Service) GatherPendingTransactions ¶
func (s *Service) GatherPendingTransactions() ([]*statechain.Transaction, error)
GatherPendingTransactions ...
func (*Service) GetHeadBlock ¶
GetHeadBlock ...
func (*Service) GetPendingMainchainBlocks ¶
GetPendingMainchainBlocks ...
func (*Service) GetTx ¶
func (s *Service) GetTx(hash string) (*statechain.Transaction, error)
GetTx ...
func (*Service) GetTxs ¶
func (s *Service) GetTxs(hashes []string) ([]*statechain.Transaction, error)
GetTxs ...
func (*Service) RemovePendingMainchainBlock ¶
RemovePendingMainchainBlock ...
func (*Service) RemovePendingMainchainBlocks ¶
RemovePendingMainchainBlocks ...
func (*Service) SetHeadBlock ¶
SetHeadBlock ...
Click to show internal directories.
Click to hide internal directories.