websocket

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoShuttleConnection = fmt.Errorf("no connection to requested shuttle")

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Handle string
	Ctx    context.Context
	// contains filtered or unexported fields
}

func (*Connection) SendMessage

func (sc *Connection) SendMessage(ctx context.Context, cmd *rpcevent.Command) error

type IEstuaryRpcEngine

type IEstuaryRpcEngine interface {
	Connect(c echo.Context, handle string, done chan struct{}) error
	GetShuttleConnection(handle string) (*Connection, bool)
}

func NewEstuaryRpcEngine

func NewEstuaryRpcEngine(ctx context.Context, db *gorm.DB, cfg *config.Estuary, log *zap.SugaredLogger, handlerFn types.MessageHandlerFn) IEstuaryRpcEngine

Jump to

Keyboard shortcuts

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