service

package
v2.3.45 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ID      int
	Channel chan models.Data
}

type SSEManager

type SSEManager struct {
	Broadcast chan models.Data

	LenChan int
	// contains filtered or unexported fields
}

func NewSSEManager

func NewSSEManager(lenChan int) *SSEManager

func (*SSEManager) RegisterClient

func (mgr *SSEManager) RegisterClient(c Client)

func (*SSEManager) Shutdown

func (mgr *SSEManager) Shutdown()

func (*SSEManager) UnregisterClient

func (mgr *SSEManager) UnregisterClient(c Client)

Jump to

Keyboard shortcuts

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