Documentation ¶
Index ¶
- type Connection
- func (c *Connection) Close(err error) error
- func (c *Connection) Closed() bool
- func (c *Connection) Err() error
- func (c *Connection) ReadEvent() (chat.Event, error)
- func (c *Connection) SendEvent(e chat.Event) error
- func (c *Connection) Wait() error
- func (c *Connection) WaitContext(ctx context.Context) error
- type Message
- type MessageRaw
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewClientConnection ¶
func NewConnection ¶
func NewConnection( wsConn *ws.Conn, logger log.Logger, ) *Connection
func (*Connection) Close ¶
func (c *Connection) Close(err error) error
func (*Connection) Closed ¶
func (c *Connection) Closed() bool
func (*Connection) Err ¶
func (c *Connection) Err() error
func (*Connection) Wait ¶
func (c *Connection) Wait() error
func (*Connection) WaitContext ¶
func (c *Connection) WaitContext(ctx context.Context) error
type Message ¶
func (*Message) UnmarshalJSON ¶
type MessageRaw ¶
type MessageRaw struct { Name string `json:"name"` Data *json.RawMessage `json:"data"` }
Click to show internal directories.
Click to hide internal directories.