processors

package
v0.0.0-...-95d8435 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

func NewProcessor

func NewProcessor(cfg *config.Config, rpcClient *client.Client, hd *handlers.SubHandler) (*Processor, error)

NewProcessor creates a new processor

func (*Processor) Close

func (p *Processor) Close(ctx context.Context) error

func (*Processor) Start

func (p *Processor) Start(ctx context.Context) error

func (*Processor) SubscribeEventType

func (p *Processor) SubscribeEventType(ctx context.Context, eventType types.EventType) error

SubscribeEventType subscribes to one event type https://docs.sui.io/build/event_api#event-filters

func (*Processor) SubscribeEvents

func (p *Processor) SubscribeEvents(ctx context.Context) error

Jump to

Keyboard shortcuts

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