publisher

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventPublisher

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

EventPublisher exposes event APIs of MESG.

func New

func New(rpc *cosmos.RPC) *EventPublisher

New creates a new Event SDK with given options.

func (*EventPublisher) GetStream

func (ep *EventPublisher) GetStream(f *event.Filter) *event.Listener

GetStream broadcasts all events.

func (*EventPublisher) Publish

func (ep *EventPublisher) Publish(instanceHash hash.Hash, eventKey string, eventData *types.Struct) (*event.Event, error)

Publish a MESG event eventKey with eventData for service token.

Jump to

Keyboard shortcuts

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