Documentation ¶
Index ¶
- Variables
- type Backend
- type Client
- func (c *Client) Chat(msg string) error
- func (c *Client) ChatTyping() error
- func (c *Client) Close()
- func (c *Client) Connect() error
- func (c *Client) Err() error
- func (c *Client) In(ch string) bool
- func (c *Client) Latency() time.Duration
- func (c *Client) Music(msg string) error
- func (c *Client) MusicPlaylistSongs(playlist string) error
- func (c *Client) MusicSongDownload(ns, id string) error
- func (c *Client) Name() string
- func (c *Client) Playlists() []string
- func (c *Client) Run() error
- func (c *Client) Send(chnl string, msg channel.Msg) error
- func (c *Client) ServerFingerprint() string
- func (c *Client) ServerKey() *crypto.PubKey
- func (c *Client) SetTrustedFingerprint(n string)
- func (c *Client) Upload(chnl, filename, msg string, size int64, r io.Reader) error
- func (c *Client) Users() Users
- type Config
- type Conn
- type Handler
- type Logger
- type MusicState
- func (m MusicState) Binary(w channel.BinaryWriter) error
- func (m MusicState) Close() error
- func (m MusicState) Equal(msg channel.Msg) bool
- func (m MusicState) FromBinary(r channel.BinaryReader) (channel.Msg, error)
- func (m MusicState) FromJSON(r io.Reader) (channel.Msg, io.Reader, error)
- func (m MusicState) JSON(w io.Writer) error
- type RW
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFingerPrint = errors.New("fingerprint mismatch")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ChatTyping ¶ added in v0.3.9
func (*Client) MusicPlaylistSongs ¶ added in v0.5.0
func (*Client) MusicSongDownload ¶
func (*Client) ServerFingerprint ¶
func (*Client) SetTrustedFingerprint ¶
type Handler ¶
type Handler interface { HandleName(name string) HandleHistory() HandleLatency(time.Duration) HandleChatMessage(chatdata.ServerMessage) error HandleMusicMessage(musicdata.ServerMessage) error HandleMusicStateMessage(MusicState) error HandleMusicPlaylistSongsMessage(musicdata.ServerPlaylistSongsMessage) error HandleUsersMessage(usersdata.ServerMessage, Users) error HandleMusicNodeMessage(musicdata.SongDataMessage) error HandleTypingMessage(typingdata.ServerMessage) error HandleUpdateMessage(updatedata.ServerMessage) error }
type MusicState ¶
type MusicState struct { musicdata.ServerStateMessage musicdata.ServerSongMessage }
func (MusicState) Binary ¶
func (m MusicState) Binary(w channel.BinaryWriter) error
func (MusicState) Close ¶
func (m MusicState) Close() error
func (MusicState) FromBinary ¶
func (m MusicState) FromBinary(r channel.BinaryReader) (channel.Msg, error)
Click to show internal directories.
Click to hide internal directories.