rpcevent

package
v0.105.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Matches

func Matches(f Comparator, r Container) bool

Matches filters our given Container against Comparator filter.

Types

type Comparator

type Comparator interface {
	EventID() neorpc.EventID
	Filter() neorpc.SubscriptionFilter
}

Comparator is an interface required from notification event filter to be able to filter notifications.

type Container

type Container interface {
	EventID() neorpc.EventID
	EventPayload() any
}

Container is an interface required from notification event to be able to pass filter.

Jump to

Keyboard shortcuts

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