events

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Type() Type
	// contains filtered or unexported methods
}

func Custom

func Custom(name string) Event

Custom create a new event with the given name, prefixing it with "CUSTOM_". If the name is empty, it will panic.

type PackageUpdate

type PackageUpdate struct {
	Package string   `json:"package"`
	Files   []string `json:"files"`
}

type PackagesUpdate

type PackagesUpdate struct {
	Pkgs []PackageUpdate `json:"packages"`
}

func (PackagesUpdate) Type

func (PackagesUpdate) Type() Type

type Reload

type Reload struct{}

func (Reload) Type

func (Reload) Type() Type

type Reset

type Reset struct{}

func (Reset) Type

func (Reset) Type() Type

type TxResult

type TxResult struct {
	Height   int64                  `json:"height"`
	Index    uint32                 `json:"index"`
	Tx       std.Tx                 `json:"tx"`
	Response abci.ResponseDeliverTx `json:"response"`
}

func (TxResult) Type

func (TxResult) Type() Type

type Type

type Type string
const (
	EvtReload         Type = "NODE_RELOAD"
	EvtReset          Type = "NODE_RESET"
	EvtPackagesUpdate Type = "PACKAGES_UPDATE"
	EvtTxResult       Type = "TX_RESULT"
)

Jump to

Keyboard shortcuts

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