websocket

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericContract

type GenericContract struct {
	Type    string      `json:"type"`
	Payload interface{} `json:"payload"`
}

type WsManager

type WsManager struct {
	EventTypeConns map[string][]net.Conn
}

func New

func New(ctx context.Context, eventChan <-chan eventbus.Topic) *WsManager

func (*WsManager) MakeListenToEventsHandler

func (wm *WsManager) MakeListenToEventsHandler() httprouter.Handle

Jump to

Keyboard shortcuts

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