Documentation ¶
Index ¶
- func DummyOnChainTransaction() (*transaction.OrgOnChain, error)
- func DummyOnChainTransactions(numTXs int) []*transaction.OrgOnChain
- func ReadAllTXsByPage() error
- func ReadTX() error
- func SaveTXIDs(txIDs []string) error
- func SubmitTX(numTXs int) ([]string, error)
- type Controller
- func (c *Controller) Close()
- func (c *Controller) ReadAllTXs() ([]*transaction.OrgOnChain, error)
- func (c *Controller) ReadAllTXsByPage(bookmark string) ([]*transaction.OrgOnChain, string, error)
- func (c *Controller) ReadTX(id string) (*transaction.OrgOnChain, error)
- func (c *Controller) SubmitBatchTXs(txList []*transaction.OrgOnChain) ([]string, error)
- func (c *Controller) SubmitTX(tx *transaction.OrgOnChain) (string, error)
- func (c *Controller) TXExists(txID string) (bool, error)
- type PageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyOnChainTransaction ¶
func DummyOnChainTransaction() (*transaction.OrgOnChain, error)
func DummyOnChainTransactions ¶
func DummyOnChainTransactions(numTXs int) []*transaction.OrgOnChain
func ReadAllTXsByPage ¶
func ReadAllTXsByPage() error
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() (*Controller, error)
NewController starts a new service instance
func (*Controller) Close ¶
func (c *Controller) Close()
func (*Controller) ReadAllTXs ¶
func (c *Controller) ReadAllTXs() ([]*transaction.OrgOnChain, error)
func (*Controller) ReadAllTXsByPage ¶
func (c *Controller) ReadAllTXsByPage(bookmark string) ([]*transaction.OrgOnChain, string, error)
func (*Controller) ReadTX ¶
func (c *Controller) ReadTX(id string) (*transaction.OrgOnChain, error)
func (*Controller) SubmitBatchTXs ¶
func (c *Controller) SubmitBatchTXs(txList []*transaction.OrgOnChain) ([]string, error)
func (*Controller) SubmitTX ¶
func (c *Controller) SubmitTX(tx *transaction.OrgOnChain) (string, error)
type PageResponse ¶
type PageResponse struct { Bookmark string `json:"bookmark"` TXs []*transaction.OrgOnChain `json:"txs"` }
Click to show internal directories.
Click to hide internal directories.