invoker

package
v0.0.0-...-3b6605c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package invoker defines the interface for invoking remote actors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invoker

type Invoker interface {
	// Invoke performs the request and returns the result value or error.
	Invoke(request *Request) (variant.Assignable, *actionerror.Error)
}

Invoker can invoke remote actors.

type Request

type Request struct {
	ActorType  string
	ActorId    []string
	ActionName string
	Parameters []any
	Lazy       bool
}

Request contains the fields for invoking a remote action.

type Response

type Response struct {
	Error variant.Assignable
	Value variant.Assignable
}

Response contains the results of invoking a remote action.

Jump to

Keyboard shortcuts

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