api

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(system *actor.System, recipient *actor.Ref) echo.HandlerFunc

Route aims at routing HTTP and websocket requests to an actor. It returns an echo handler function to register with endpoints. Requests will be routed to the specified actor reference if presented. Otherwise, it will use the same path as the request path to locate the actor path.

Types

type WebSocketRequest

type WebSocketRequest struct {
	Ctx echo.Context
}

WebSocketRequest notifies the actor that a websocket is attempting to connect.

func (*WebSocketRequest) IsReconnect

func (w *WebSocketRequest) IsReconnect() (bool, error)

IsReconnect checks if agent is reconnecting after a network failure.

Jump to

Keyboard shortcuts

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