Documentation
¶
Index ¶
- func NewWebSocketSession(log *slog.Logger, conn *websocket.Conn, peer *domain.Peer, incoming bool, ...) session.Session
- type WebSocketSession
- func (s *WebSocketSession) Close(context.Context)
- func (s *WebSocketSession) GetID() uuid.UUID
- func (s *WebSocketSession) GetLastDial() time.Time
- func (s *WebSocketSession) GetPeerID() uuid.UUID
- func (s *WebSocketSession) GetReadChannel(context.Context) (<-chan *pb.Message, error)
- func (s *WebSocketSession) GetWriteChannel(context.Context) (chan<- *pb.Message, error)
- func (s *WebSocketSession) IsIncoming() bool
- func (s *WebSocketSession) IsOpen() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebSocketSession ¶
type WebSocketSession struct {
session.BaseSession
// contains filtered or unexported fields
}
func (*WebSocketSession) Close ¶
func (s *WebSocketSession) Close(context.Context)
func (*WebSocketSession) GetID ¶
func (s *WebSocketSession) GetID() uuid.UUID
func (*WebSocketSession) GetLastDial ¶
func (s *WebSocketSession) GetLastDial() time.Time
func (*WebSocketSession) GetPeerID ¶
func (s *WebSocketSession) GetPeerID() uuid.UUID
func (*WebSocketSession) GetReadChannel ¶
func (*WebSocketSession) GetWriteChannel ¶
func (*WebSocketSession) IsIncoming ¶
func (s *WebSocketSession) IsIncoming() bool
func (*WebSocketSession) IsOpen ¶
func (s *WebSocketSession) IsOpen() bool
Click to show internal directories.
Click to hide internal directories.