handler

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExist = errors.New("does not exist")

Functions

This section is empty.

Types

type NoopHandler

type NoopHandler struct {
}

func (NoopHandler) HandleChatMessage

func (h NoopHandler) HandleChatMessage(chatdata.ServerMessage) error

func (NoopHandler) HandleHistory

func (h NoopHandler) HandleHistory()

func (NoopHandler) HandleLatency

func (h NoopHandler) HandleLatency(time.Duration)

func (NoopHandler) HandleMusicMessage

func (h NoopHandler) HandleMusicMessage(musicdata.ServerMessage) error

func (NoopHandler) HandleMusicNodeMessage

func (h NoopHandler) HandleMusicNodeMessage(musicdata.SongDataMessage) error

func (NoopHandler) HandleMusicPlaylistSongsMessage added in v0.5.0

func (h NoopHandler) HandleMusicPlaylistSongsMessage(musicdata.ServerPlaylistSongsMessage) error

func (NoopHandler) HandleMusicStateMessage

func (h NoopHandler) HandleMusicStateMessage(client.MusicState) error

func (NoopHandler) HandleName

func (h NoopHandler) HandleName(string)

func (NoopHandler) HandleTypingMessage added in v0.3.9

func (h NoopHandler) HandleTypingMessage(typingdata.ServerMessage) error

func (NoopHandler) HandleUpdateMessage added in v0.3.11

func (h NoopHandler) HandleUpdateMessage(updatedata.ServerMessage) error

func (NoopHandler) HandleUsersMessage

func (h NoopHandler) HandleUsersMessage(usersdata.ServerMessage, client.Users) error

type UpdateHandler added in v0.3.11

type UpdateHandler struct {
	client.Handler
	// contains filtered or unexported fields
}

func NewUpdateHandler added in v0.3.11

func NewUpdateHandler(
	handler client.Handler,
	log client.Logger,
	cl *client.Client,
) *UpdateHandler

func (*UpdateHandler) Download added in v0.3.11

func (u *UpdateHandler) Download(os, arch string, w io.Writer) error

func (*UpdateHandler) HandleUpdateMessage added in v0.3.11

func (u *UpdateHandler) HandleUpdateMessage(m updatedata.ServerMessage) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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