ws

package
v0.0.0-...-5add7d8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocket

type WebSocket struct {
	Logger *zap.Logger
	// contains filtered or unexported fields
}

func NewWebsocket

func NewWebsocket(logger *zap.Logger) *WebSocket

func (*WebSocket) CheckActive

func (c *WebSocket) CheckActive() bool

func (*WebSocket) Router

func (c *WebSocket) Router() http.Handler

func (*WebSocket) SendJSON

func (c *WebSocket) SendJSON(jsonData interface{}) error

Jump to

Keyboard shortcuts

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