Documentation ¶
Index ¶
- Constants
- func MakeTxEventPath(space string, path string, prefix string) types.EventPath
- func PublishBlockEvent(event BlockEvent)
- func PublishTxEvent(msg types.TxMsg)
- func SubscribeBlockEvent(path types.EventPath, name string, handler types.EventHandler) error
- func SubscribeTxEvent(eventPath types.EventPath, name string, handler TxEventHandler) error
- func UnsubscribeBlockEvent(path types.EventPath, name string)
- func UnsubscribeTxEvent(eventPath types.EventPath, name string)
- type BeginBlockEvent
- type BlockEvent
- type CommitEvent
- type EndBlockEvent
- type TxEvent
- type TxEventHandler
Constants ¶
View Source
const ( EventScopeBlock = types.EventScope("tm-block") EventScopeTx = types.EventScope("tm-tx") EndBlockEventPath = types.EventPath("end-block") BeginBlockEventPath = types.EventPath("begin-block") CommitEventPath = types.EventPath("commit") )
Variables ¶
This section is empty.
Functions ¶
func MakeTxEventPath ¶
func PublishBlockEvent ¶
func PublishBlockEvent(event BlockEvent)
func PublishTxEvent ¶
func SubscribeBlockEvent ¶
func SubscribeTxEvent ¶
func SubscribeTxEvent(eventPath types.EventPath, name string, handler TxEventHandler) error
func UnsubscribeBlockEvent ¶
func UnsubscribeTxEvent ¶
Types ¶
type BeginBlockEvent ¶
type BeginBlockEvent struct { BlockEvent Height int64 Time time.Time }
func (BeginBlockEvent) Path ¶
func (event BeginBlockEvent) Path() types.EventPath
type BlockEvent ¶
type CommitEvent ¶
type CommitEvent struct { BlockEvent Height int64 Size int64 AppHash []byte }
func (CommitEvent) Path ¶
func (event CommitEvent) Path() types.EventPath
type EndBlockEvent ¶
type EndBlockEvent struct { BlockEvent Height int64 Size int }
func (EndBlockEvent) Path ¶
func (event EndBlockEvent) Path() types.EventPath
type TxEvent ¶
func NewTxEvent ¶
type TxEventHandler ¶
type TxEventHandler func(event TxEvent)
Click to show internal directories.
Click to hide internal directories.