Documentation ¶
Index ¶
- Variables
- type RPCWebsocket
- func (c *RPCWebsocket) Call(ctx context.Context, nc *nats.Conn, metrics *metrics.Metrics, dongleID string, ...) (apimodels.RPCResponse, error)
- func (c *RPCWebsocket) OnConnect(ctx context.Context, _ *http.Request, w websocket.Writer, ...)
- func (c *RPCWebsocket) OnDisconnect(_ *http.Request, device *models.Device, _ *gorm.DB, metrics *metrics.Metrics)
- func (c *RPCWebsocket) OnMessage(_ *http.Request, _ websocket.Writer, msg []byte, msgType int, ...)
- func (c *RPCWebsocket) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotConnected = errors.New("dongle not connected")
)
Functions ¶
This section is empty.
Types ¶
type RPCWebsocket ¶
func CreateRPCWebsocket ¶
func CreateRPCWebsocket(config *config.Config, metrics *metrics.Metrics) *RPCWebsocket
func (*RPCWebsocket) OnDisconnect ¶
Click to show internal directories.
Click to hide internal directories.