plugins

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewContext = types.NewContext
)

Functions

func HandleEvent

func HandleEvent(ctx sdk.Context, evts sdk.Events)

HandleEvent plugins handler Events

func HandleTx

func HandleTx(ctxSdk sdk.Context, tx chainTypes.StdTx)

HandleTx handler tx for each plugins

func InitPlugins

func InitPlugins(ctx Context, cfgs []BaseCfg) error

func StopPlugins

func StopPlugins(ctx Context)

Types

type BaseCfg

type BaseCfg = types.BaseCfg

type Context

type Context = types.Context

type Plugin

type Plugin = types.Plugin

type Plugins

type Plugins struct {
	// contains filtered or unexported fields
}

Plugins a handler for all plugins to reg

func NewPlugins

func NewPlugins(logger log.Logger) *Plugins

func (*Plugins) EmitEvent

func (p *Plugins) EmitEvent(evt sdk.Event)

func (*Plugins) EmitTx

func (p *Plugins) EmitTx(tx StdTx)

func (*Plugins) RegPlugin

func (p *Plugins) RegPlugin(ctx Context, plugin Plugin)

func (*Plugins) Start

func (p *Plugins) Start()

func (*Plugins) Stop

func (p *Plugins) Stop(ctx types.Context)

type StdTx

type StdTx = chainTypes.StdTx

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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