dispatcher

package
v2.0.0-beta.35 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackMessage

type CallbackMessage struct {
	Result     interface{} `json:"result"`
	Err        string      `json:"error"`
	CallbackID string      `json:"callbackid"`
}

CallbackMessage defines a message that contains the result of a call

type Dispatcher

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

func NewDispatcher

func NewDispatcher(ctx context.Context, log *logger.Logger, bindings *binding.Bindings, events frontend.Events) *Dispatcher

func (*Dispatcher) NewErrorCallback

func (d *Dispatcher) NewErrorCallback(message string, callbackID string) (string, error)

func (*Dispatcher) ProcessMessage

func (d *Dispatcher) ProcessMessage(message string, sender frontend.Frontend) (string, error)

type EventMessage

type EventMessage struct {
	Name string        `json:"name"`
	Data []interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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