predicate

package
v0.0.0-...-2f7b494 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(p Predicate, a Accept) handle.Handler

Handler constructs a predicated Handler, one where a Predicate check is performed on a actor.Message, and if the result is true, will see the message passed through the Accept handler

Types

type Accept

type Accept handle.Handler

Accept is a function that accepts a predicated actor.Message

type Predicate

type Predicate handle.Handler

Predicate is a function that returns whether a Message can be handled

func IsA

func IsA(i any) Predicate

IsA returns a Predicate that compares a provided actor.Message with the resolved type of the configured interface. This Predicate uses the Go reflection facility, and will eventually be replaced by generics

Jump to

Keyboard shortcuts

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