message

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 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 Event

type Event string

type SseService

type SseService struct {
}

func GetSseService

func GetSseService() *SseService

func (*SseService) AddSseSession

func (s *SseService) AddSseSession(id string, uid int64, w gin.ResponseWriter, mtx *sync.Mutex)

func (*SseService) PushEventMessage

func (s *SseService) PushEventMessage(uId int64, event Event, data any) error

func (*SseService) RemoveSseSession

func (s *SseService) RemoveSseSession(id string)

Jump to

Keyboard shortcuts

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