websocket

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttachWebSocket = func(ws *WebSocket) error {

	return nil
}

Functions

func AddSubscription

func AddSubscription(srv common.LocalService, name string, handler p2p.PubSubConsumerHandler, err_handler p2p.PubSubConsumerErrorHandler) (subIdex int, err error)

Types

type WebSocket

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

func (*WebSocket) Application added in v1.0.11

func (ws *WebSocket) Application() string

func (*WebSocket) AssetId added in v1.0.11

func (ws *WebSocket) AssetId() string

func (*WebSocket) Clean

func (ws *WebSocket) Clean()

func (*WebSocket) Close

func (w *WebSocket) Close()

func (*WebSocket) Commit

func (ws *WebSocket) Commit() string

func (*WebSocket) Config

func (ws *WebSocket) Config() *structureSpec.Function

TODO: Fix this

func (*WebSocket) HandleMessage

func (ws *WebSocket) HandleMessage(msg *pubsub.Message) (t time.Time, err error)

func (*WebSocket) Id

func (w *WebSocket) Id() (id string)

func (*WebSocket) Match

func (ws *WebSocket) Match(matcher components.MatchDefinition) (currentMatchIndex matcherSpec.Index)

func (*WebSocket) Matcher

func (ws *WebSocket) Matcher() components.MatchDefinition

func (*WebSocket) Name

func (ws *WebSocket) Name() string

func (*WebSocket) Project

func (ws *WebSocket) Project() string

func (*WebSocket) Ready

func (w *WebSocket) Ready() error

func (*WebSocket) Service

func (ws *WebSocket) Service() components.ServiceComponent

func (*WebSocket) Validate

func (ws *WebSocket) Validate(matcher components.MatchDefinition) error

type WrappedMessage

type WrappedMessage struct {
	Message []byte `json:"message"`
	Error   string `json:"error"`
}

Jump to

Keyboard shortcuts

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