websocket

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsMixin

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

func (*EventsMixin) Init

func (m *EventsMixin) Init(context moleculer.BrokerContext, s *WebSocketServer)

type SocketMixin

type SocketMixin interface {
	// Init Initializes the Mixin.
	Init(moleculer.BrokerContext, *WebSocketServer)
}

type TopicSubscription

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

type WebSocketClient

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

type WebSocketMixin

type WebSocketMixin struct {
	Settings map[string]interface{}
	Mixins   []SocketMixin
	// contains filtered or unexported fields
}

func (*WebSocketMixin) RouterStarting

func (m *WebSocketMixin) RouterStarting(context moleculer.BrokerContext, router *mux.Router)

RouterStarting create a websocket server and add to the mux.router

type WebSocketServer

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

func (*WebSocketServer) ServeHTTP

func (ps *WebSocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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