events

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventStringAccountInput

func EventStringAccountInput(addr acm.Address) string

func EventStringAccountOutput

func EventStringAccountOutput(addr acm.Address) string

func EventStringBond

func EventStringBond() string

func EventStringNameReg

func EventStringNameReg(name string) string

func EventStringPermissions

func EventStringPermissions(name string) string

func EventStringRebond

func EventStringRebond() string

func EventStringUnbond

func EventStringUnbond() string

func PublishAccountInput

func PublishAccountInput(publisher event.Publisher, address acm.Address, txHash []byte,
	tx txs.Tx, ret []byte, exception string) error

func PublishAccountOutput

func PublishAccountOutput(publisher event.Publisher, address acm.Address, txHash []byte,
	tx txs.Tx, ret []byte, exception string) error

func PublishNameReg

func PublishNameReg(publisher event.Publisher, txHash []byte, tx *txs.NameTx) error

func PublishPermissions

func PublishPermissions(publisher event.Publisher, name string, txHash []byte, tx *txs.PermissionsTx) error

func SubscribeAccountOutputSendTx

func SubscribeAccountOutputSendTx(ctx context.Context, subscribable event.Subscribable, subscriber string,
	address acm.Address, txHash []byte, ch chan<- *txs.SendTx) error

Publish/Subscribe

Types

type EventDataTx

type EventDataTx struct {
	Tx        txs.Tx
	Return    []byte
	Exception string
}

All txs fire EventDataTx, but only CallTx might have Return or Exception

func (EventDataTx) MarshalJSON

func (edTx EventDataTx) MarshalJSON() ([]byte, error)

func (*EventDataTx) UnmarshalJSON

func (edTx *EventDataTx) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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