Documentation ¶
Index ¶
- Variables
- type RPCWebsocket
- func (c *RPCWebsocket) Call(ctx context.Context, redis *redis.Client, dongleID string, ...) (apimodels.RPCResponse, error)
- func (c *RPCWebsocket) OnConnect(ctx context.Context, _ *http.Request, w websocket.Writer, ...)
- func (c *RPCWebsocket) OnDisconnect(_ context.Context, _ *http.Request, device *models.Device, _ *gorm.DB)
- func (c *RPCWebsocket) OnMessage(ctx context.Context, _ *http.Request, _ websocket.Writer, msg []byte, ...)
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() *RPCWebsocket
func (*RPCWebsocket) Call ¶
func (c *RPCWebsocket) Call(ctx context.Context, redis *redis.Client, dongleID string, call apimodels.RPCCall) (apimodels.RPCResponse, error)
func (*RPCWebsocket) OnDisconnect ¶
Click to show internal directories.
Click to hide internal directories.