actor

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 Imported by: 6

Documentation

Overview

Package actor contains the real actor stuff, i.e. listeners (loops), steps waiting for events/messages and default handlers for further processing, and the dispatcher, i.e. the top-level actor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoneHandler

func DoneHandler(ctx *b.Context) (loop bool)

func EchoHandler

func EchoHandler(ctx *b.Context, msg *b.Message) bool

func Forward

func Forward(ctx *b.Context, spec m.Map, msg *b.Message)

func GetActions added in v0.1.8

func GetActions(
	ctx *b.Context, actions m.Map, msg *b.Message, k []string) []m.Map

func Ignore

func Ignore(ctx *b.Context, spec m.Map, msg *b.Message)

func MakeRequesterName added in v0.1.13

func MakeRequesterName(msg *b.Message) string

func MessageHandler

func MessageHandler(ctx *b.Context, msg *b.Message) (loop bool)

func RunActor added in v0.1.19

func RunActor(ctx *b.Context, name string, spec m.Map)

func RunActors

func RunActors(ctx *b.Context)

func SelectActions added in v0.1.8

func SelectActions(ctx *b.Context, actions m.Map, msg *b.Message) (acts []m.Map)

func Setup added in v0.1.19

func Setup(ctx *b.Context)

func StartDispatcher

func StartDispatcher(ctx *b.Context)

func Startup

func Startup(ctx *b.Context)

func Step

func Step(ctx *b.Context) (loop bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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