Documentation
¶
Index ¶
- type Host
- func (h *Host) Handler(context *common.Context)
- func (h *Host) HandlerMethod() string
- func (h *Host) HandlerPath() string
- func (h *Host) Name() enum.Sender
- func (h *Host) OnDeleteDevice(ctx *common.Context, device *generate.Device) error
- func (h *Host) Send(ctx context.Context, msg *item.PushMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func (*Host) Handler ¶
Handler
@Summary Endpoint for websocket connection @Id websocket @Tags Push @Description Work as a fallback strategy for device without public push provider, each frame in this connection will be a push message @Param X-Device-ID header string true "Device ID, usually a UUID" @Param user_secret path string true "Secret of user" @Produce json @Success 200 {object} models.Message @Failure 400 {object} common.BadRequestResponse @Failure 401 {object} common.UnauthorizedResponse @Router /{user_secret}/conn [get]
func (*Host) HandlerMethod ¶
func (*Host) HandlerPath ¶
func (*Host) OnDeleteDevice ¶
Click to show internal directories.
Click to hide internal directories.