notify

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	CH map[string]broadcast.Broadcaster
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cfg *model.Cfg, log *logger.Log) (*Service, error)

func (*Service) Close

func (s *Service) Close(ctx context.Context) error

func (*Service) CloseListener

func (s *Service) CloseListener(id string, listener chan any)

func (*Service) HasListener

func (s *Service) HasListener(id string) bool

HasListener returns true if there's an active listener for the given session ID

func (*Service) Notify

func (s *Service) Notify(id string) broadcast.Broadcaster

func (*Service) OpenListener

func (s *Service) OpenListener(id string) chan any

func (*Service) Submit

func (s *Service) Submit(id string, msg any)

Jump to

Keyboard shortcuts

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