service

package
v2.3.114 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 3 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 model.Data
}

type SSEManager

type SSEManager struct {
	Broadcast chan model.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) SendMessage added in v2.3.93

func (mgr *SSEManager) SendMessage(ctx context.Context, m model.Message) error

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