manager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 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 Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(clientRepo types.ClientRepo, upgrader *websocket.Upgrader, eventRouter types.EventRouter) *Manager

func (*Manager) AddClient

func (m *Manager) AddClient(client types.Client) error

func (*Manager) Clients

func (m *Manager) Clients() types.ClientRepo

func (*Manager) EventRouter

func (m *Manager) EventRouter() types.EventRouter

func (*Manager) RemoveClient

func (m *Manager) RemoveClient(client types.Client)

func (*Manager) WebsocketUpgrader

func (m *Manager) WebsocketUpgrader() *websocket.Upgrader

Jump to

Keyboard shortcuts

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