Documentation ¶
Index ¶
- type Acknowledgement
- type Broadcaster
- type Client
- type ClientManager
- type Config
- type ConnectionManager
- type MsgProcessor
- type Service
- func (s *Service) Broadcast(msgData []byte)
- func (s *Service) Conn() error
- func (s *Service) GetClientsInfo()
- func (s *Service) InitMessageChannel()
- func (s *Service) InitRouter() error
- func (s *Service) ProcessMsg(msgData []byte) error
- func (s *Service) RegisterClient(connection *websocket.Conn)
- func (s *Service) SendUDPMessage(version int, msg string) error
- func (s *Service) Start()
- func (s *Service) Stop() error
- func (s *Service) UnRegisterClient(connection *websocket.Conn)
- type Socket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acknowledgement ¶
type Broadcaster ¶
type Broadcaster interface {
Broadcast([]byte)
}
type ClientManager ¶
type ClientManager interface {
GetClientsInfo()
}
type Config ¶
type Config struct { WsAddr string Router *fiber.App Kafka kafka.StreamProvider DB db.ReadOnlyRedisDB }
type ConnectionManager ¶
type MsgProcessor ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetClientsInfo ¶
func (s *Service) GetClientsInfo()
func (*Service) InitMessageChannel ¶
func (s *Service) InitMessageChannel()
func (*Service) InitRouter ¶
func (*Service) ProcessMsg ¶
func (*Service) RegisterClient ¶
func (*Service) UnRegisterClient ¶
type Socket ¶
type Socket interface { Broadcaster Acknowledgement ClientManager MsgProcessor ConnectionManager }
Click to show internal directories.
Click to hide internal directories.