audchain

package
v0.0.0-...-950a2ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyOnChainTransaction

func DummyOnChainTransaction() (*transaction.AudOnChain, error)

func DummyOnChainTransactions

func DummyOnChainTransactions(numTXs int) []*transaction.AudOnChain

func ReadAllTXsByPage

func ReadAllTXsByPage() error

func ReadTX

func ReadTX() error

func SaveTXIDs

func SaveTXIDs(txIDs []string) error

func SubmitTX

func SubmitTX(numTXs int) ([]string, 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) GetAllTXs

func (c *Controller) GetAllTXs() ([]*transaction.AudOnChain, error)

func (*Controller) ReadAllTXsByPage

func (c *Controller) ReadAllTXsByPage(bookmark string) ([]*transaction.AudOnChain, string, error)

func (*Controller) ReadTX

func (c *Controller) ReadTX(id string) (*transaction.AudOnChain, error)

func (*Controller) SubmitBatchTXs

func (c *Controller) SubmitBatchTXs(txList []*transaction.AudOnChain) ([]string, error)

func (*Controller) SubmitTX

func (c *Controller) SubmitTX(tx *transaction.AudOnChain) (string, error)

func (*Controller) TXExists

func (c *Controller) TXExists(txID string) (bool, error)

type PageResponse

type PageResponse struct {
	Bookmark string                    `json:"bookmark"`
	TXs      []*transaction.AudOnChain `json:"txs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL