Documentation ¶
Index ¶
- func CreateConnection(_ api.StreamContext) modules.Connection
- type Sock
- func (s *Sock) Close(_ api.StreamContext) error
- func (s *Sock) Dial(ctx api.StreamContext) error
- func (s *Sock) GetId(_ api.StreamContext) string
- func (s *Sock) Ping(_ api.StreamContext) error
- func (s *Sock) Provision(ctx api.StreamContext, conId string, props map[string]any) error
- func (s *Sock) Send(ctx api.StreamContext, data []byte) error
- func (s *Sock) SetStatusChangeHandler(_ api.StreamContext, handler api.StatusChangeHandler)
- func (s *Sock) Status(_ api.StreamContext) modules.ConnectionStatus
- type SockConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConnection ¶
func CreateConnection(_ api.StreamContext) modules.Connection
Types ¶
type Sock ¶
type Sock struct { mangos.Socket // contains filtered or unexported fields }
func (*Sock) SetStatusChangeHandler ¶
func (s *Sock) SetStatusChangeHandler(_ api.StreamContext, handler api.StatusChangeHandler)
func (*Sock) Status ¶
func (s *Sock) Status(_ api.StreamContext) modules.ConnectionStatus
Click to show internal directories.
Click to hide internal directories.