ws

package
v0.0.0-...-028d19a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WsHandler

func WsHandler(engine *gin.Engine)

Types

type Handler

type Handler struct {
}

func (*Handler) PublishToAll

func (h *Handler) PublishToAll(c *gin.Context)

func (*Handler) PublishToOne

func (h *Handler) PublishToOne(c *gin.Context)

func (*Handler) SubscribeHandler

func (h *Handler) SubscribeHandler(c *gin.Context)

type ListSubscribers

type ListSubscribers struct {
	// contains filtered or unexported fields
}
var ListSubs *ListSubscribers

type Subscriber

type Subscriber struct {
	Id      string
	Message chan []byte
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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