handler

package
v0.0.0-...-2d539fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponseData

type AuthResponseData struct {
	SessionId string `json:"sessionId" msgpack:"sessionId"`
}

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func Init

func Init(app app.App) *Handlers

func (*Handlers) HandleAcceptRoomJoinRequest

func (h *Handlers) HandleAcceptRoomJoinRequest(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleAuth

func (h *Handlers) HandleAuth(packet *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleDisconnect

func (h *Handlers) HandleDisconnect(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleJoinRoom

func (h *Handlers) HandleJoinRoom(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleKickUser

func (h *Handlers) HandleKickUser(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleLeaveRoom

func (h *Handlers) HandleLeaveRoom(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleQueueAdd

func (h *Handlers) HandleQueueAdd(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleQueueRemove

func (h *Handlers) HandleQueueRemove(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleSeek

func (h *Handlers) HandleSeek(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleSetPlayerState

func (h *Handlers) HandleSetPlayerState(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleSkip

func (h *Handlers) HandleSkip(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleUpdateRole

func (h *Handlers) HandleUpdateRole(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) HandleVideoEnd

func (h *Handlers) HandleVideoEnd(data *resource.Packet, c *client.Client) gateway.Error

func (*Handlers) KickUser

func (h *Handlers) KickUser(msg *dispatcher.Message)

func (*Handlers) SetCurrentItem

func (h *Handlers) SetCurrentItem(ctx context.Context, roomId model.RoomId, item *resource.MediaItem) error

func (*Handlers) UpdateRole

func (h *Handlers) UpdateRole(msg *dispatcher.Message)

type KickUserMessage

type KickUserMessage struct {
	RoomId model.RoomId `json:"roomId" mapstructure:"roomId"`
	UserId model.UserId `json:"userId" mapstructure:"userId"`
}

type RoleUpdateMessage

type RoleUpdateMessage struct {
	RoomId model.RoomId `json:"roomId" mapstructure:"roomId"`
	UserId model.UserId `json:"userId" mapstructure:"userId"`
	RoleId role.Id      `json:"roleId" mapstructure:"roleId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL