Documentation
¶
Index ¶
- type Service
- func (s *Service) Close(ctx context.Context) error
- func (s *Service) CloseListener(id string, listener chan any)
- func (s *Service) HasListener(id string) bool
- func (s *Service) Notify(id string) broadcast.Broadcaster
- func (s *Service) OpenListener(id string) chan any
- func (s *Service) Submit(id string, msg any)
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 (*Service) CloseListener ¶
func (*Service) HasListener ¶
HasListener returns true if there's an active listener for the given session ID
func (*Service) OpenListener ¶
Click to show internal directories.
Click to hide internal directories.