Documentation ¶
Index ¶
- Variables
- func AddSubscription(srv common.LocalService, name string, handler p2p.PubSubConsumerHandler, ...) (subIdex int, err error)
- func Handler(srv common.LocalService, ctx service.Context, conn *websocket.Conn) service.WebSocketHandler
- func New(srv common.LocalService, mmi common.MessagingMapItem, commit, branch string, ...) (commonIface.Serviceable, error)
- type WebSocket
- func (ws *WebSocket) Application() string
- func (ws *WebSocket) AssetId() string
- func (ws *WebSocket) Branch() string
- func (ws *WebSocket) Clean()
- func (w *WebSocket) Close()
- func (ws *WebSocket) Commit() string
- func (ws *WebSocket) Config() *structureSpec.Function
- func (ws *WebSocket) HandleMessage(msg *pubsub.Message) (t time.Time, err error)
- func (w *WebSocket) Id() (id string)
- func (ws *WebSocket) Match(matcher components.MatchDefinition) (currentMatchIndex matcherSpec.Index)
- func (ws *WebSocket) Matcher() components.MatchDefinition
- func (ws *WebSocket) Name() string
- func (ws *WebSocket) Project() string
- func (w *WebSocket) Ready() error
- func (ws *WebSocket) Service() components.ServiceComponent
- func (ws *WebSocket) Validate(matcher components.MatchDefinition) error
- type WrappedMessage
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)
func Handler ¶
func Handler(srv common.LocalService, ctx service.Context, conn *websocket.Conn) service.WebSocketHandler
func New ¶
func New(srv common.LocalService, mmi common.MessagingMapItem, commit, branch string, matcher *common.MatchDefinition) (commonIface.Serviceable, error)
Types ¶
type WebSocket ¶
type WebSocket struct {
// contains filtered or unexported fields
}
func (*WebSocket) Application ¶
func (*WebSocket) HandleMessage ¶
func (*WebSocket) Match ¶
func (ws *WebSocket) Match(matcher components.MatchDefinition) (currentMatchIndex matcherSpec.Index)
func (*WebSocket) Matcher ¶
func (ws *WebSocket) Matcher() components.MatchDefinition
func (*WebSocket) Service ¶
func (ws *WebSocket) Service() components.ServiceComponent
func (*WebSocket) Validate ¶
func (ws *WebSocket) Validate(matcher components.MatchDefinition) error
type WrappedMessage ¶
Click to show internal directories.
Click to hide internal directories.