Documentation
¶
Index ¶
- func NewLavalinkImpl(logger log.Logger, userID string) api.Lavalink
- func NewPlayer(node api.Node, guildID string) api.Player
- type DisgolinkImpl
- type LavalinkImpl
- func (l *LavalinkImpl) AddNode(options *api.NodeOptions)
- func (l *LavalinkImpl) BestNode() api.Node
- func (l *LavalinkImpl) ClientName() string
- func (l *LavalinkImpl) Close()
- func (l *LavalinkImpl) ExistingPlayer(guildID string) api.Player
- func (l *LavalinkImpl) Logger() log.Logger
- func (l *LavalinkImpl) Node(name string) api.Node
- func (l *LavalinkImpl) Player(guildID string) api.Player
- func (l *LavalinkImpl) Players() map[string]api.Player
- func (l *LavalinkImpl) RemoveNode(name string)
- func (l LavalinkImpl) RestClient() api.RestClient
- func (l *LavalinkImpl) SetUserID(userID string)
- func (l *LavalinkImpl) UserID() string
- func (l *LavalinkImpl) VoiceServerUpdate(voiceServerUpdate *api.VoiceServerUpdate)
- func (l *LavalinkImpl) VoiceStateUpdate(voiceStateUpdate *api.VoiceStateUpdate)
- type NodeImpl
- func (n *NodeImpl) Close()
- func (n *NodeImpl) Lavalink() api.Lavalink
- func (n *NodeImpl) Name() string
- func (n *NodeImpl) Open() error
- func (n *NodeImpl) Options() *api.NodeOptions
- func (n *NodeImpl) RestClient() api.RestClient
- func (n NodeImpl) RestURL() string
- func (n *NodeImpl) Send(d interface{})
- func (n *NodeImpl) Stats() *api.Stats
- func (n *NodeImpl) Status() api.NodeStatus
- type PlayerImpl
- func (p *PlayerImpl) AddListener(playerListener api.PlayerEventListener)
- func (p *PlayerImpl) ChangeNode(node api.Node)
- func (p *PlayerImpl) ChannelID() *string
- func (p *PlayerImpl) Destroy()
- func (p *PlayerImpl) EmitEvent(listenerCaller func(listener api.PlayerEventListener))
- func (p *PlayerImpl) Filters() *filters.Filters
- func (p *PlayerImpl) GuildID() string
- func (p *PlayerImpl) LastSessionID() *string
- func (p *PlayerImpl) Node() api.Node
- func (p *PlayerImpl) Pause(pause bool)
- func (p *PlayerImpl) Paused() bool
- func (p *PlayerImpl) Play(track api.Track)
- func (p *PlayerImpl) PlayAt(track api.Track, start int, end int)
- func (p *PlayerImpl) PlayerUpdate(state api.State)
- func (p *PlayerImpl) Position() int
- func (p *PlayerImpl) RemoveListener(playerListener api.PlayerEventListener)
- func (p *PlayerImpl) Seek(position int)
- func (p *PlayerImpl) SetChannelID(channelID *string)
- func (p *PlayerImpl) SetFilters(filters *filters.Filters)
- func (p *PlayerImpl) SetLastSessionID(sessionID string)
- func (p *PlayerImpl) SetTrack(track api.Track)
- func (p *PlayerImpl) SetVolume(volume int)
- func (p *PlayerImpl) Stop()
- func (p *PlayerImpl) Track() api.Track
- func (p *PlayerImpl) Volume() int
- type RestClientImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DisgolinkImpl ¶ added in v0.1.0
func (*DisgolinkImpl) OnEvent ¶ added in v0.1.0
func (l *DisgolinkImpl) OnEvent(event interface{})
func (*DisgolinkImpl) OnVoiceServerUpdate ¶ added in v0.1.0
func (l *DisgolinkImpl) OnVoiceServerUpdate(voiceServerUpdate *dapi.VoiceServerUpdateEvent)
func (*DisgolinkImpl) OnVoiceStateUpdate ¶ added in v0.1.0
func (l *DisgolinkImpl) OnVoiceStateUpdate(voiceStateUpdate *dapi.VoiceStateUpdateEvent)
type LavalinkImpl ¶
type LavalinkImpl struct {
// contains filtered or unexported fields
}
func (*LavalinkImpl) AddNode ¶
func (l *LavalinkImpl) AddNode(options *api.NodeOptions)
func (*LavalinkImpl) BestNode ¶
func (l *LavalinkImpl) BestNode() api.Node
func (*LavalinkImpl) ClientName ¶
func (l *LavalinkImpl) ClientName() string
func (*LavalinkImpl) Close ¶
func (l *LavalinkImpl) Close()
func (*LavalinkImpl) ExistingPlayer ¶
func (l *LavalinkImpl) ExistingPlayer(guildID string) api.Player
func (*LavalinkImpl) Logger ¶
func (l *LavalinkImpl) Logger() log.Logger
func (*LavalinkImpl) RemoveNode ¶
func (l *LavalinkImpl) RemoveNode(name string)
func (LavalinkImpl) RestClient ¶
func (l LavalinkImpl) RestClient() api.RestClient
func (*LavalinkImpl) SetUserID ¶
func (l *LavalinkImpl) SetUserID(userID string)
func (*LavalinkImpl) UserID ¶
func (l *LavalinkImpl) UserID() string
func (*LavalinkImpl) VoiceServerUpdate ¶
func (l *LavalinkImpl) VoiceServerUpdate(voiceServerUpdate *api.VoiceServerUpdate)
func (*LavalinkImpl) VoiceStateUpdate ¶
func (l *LavalinkImpl) VoiceStateUpdate(voiceStateUpdate *api.VoiceStateUpdate)
type NodeImpl ¶
type NodeImpl struct {
// contains filtered or unexported fields
}
func (*NodeImpl) Options ¶
func (n *NodeImpl) Options() *api.NodeOptions
func (*NodeImpl) RestClient ¶
func (n *NodeImpl) RestClient() api.RestClient
func (*NodeImpl) Status ¶
func (n *NodeImpl) Status() api.NodeStatus
type PlayerImpl ¶
type PlayerImpl struct {
// contains filtered or unexported fields
}
func (*PlayerImpl) AddListener ¶
func (p *PlayerImpl) AddListener(playerListener api.PlayerEventListener)
func (*PlayerImpl) ChangeNode ¶
func (p *PlayerImpl) ChangeNode(node api.Node)
func (*PlayerImpl) ChannelID ¶
func (p *PlayerImpl) ChannelID() *string
func (*PlayerImpl) Destroy ¶
func (p *PlayerImpl) Destroy()
func (*PlayerImpl) EmitEvent ¶
func (p *PlayerImpl) EmitEvent(listenerCaller func(listener api.PlayerEventListener))
func (*PlayerImpl) Filters ¶
func (p *PlayerImpl) Filters() *filters.Filters
func (*PlayerImpl) GuildID ¶
func (p *PlayerImpl) GuildID() string
func (*PlayerImpl) LastSessionID ¶
func (p *PlayerImpl) LastSessionID() *string
func (*PlayerImpl) Node ¶
func (p *PlayerImpl) Node() api.Node
func (*PlayerImpl) Pause ¶
func (p *PlayerImpl) Pause(pause bool)
func (*PlayerImpl) Paused ¶
func (p *PlayerImpl) Paused() bool
func (*PlayerImpl) Play ¶
func (p *PlayerImpl) Play(track api.Track)
func (*PlayerImpl) PlayerUpdate ¶
func (p *PlayerImpl) PlayerUpdate(state api.State)
func (*PlayerImpl) Position ¶
func (p *PlayerImpl) Position() int
func (*PlayerImpl) RemoveListener ¶
func (p *PlayerImpl) RemoveListener(playerListener api.PlayerEventListener)
func (*PlayerImpl) Seek ¶
func (p *PlayerImpl) Seek(position int)
func (*PlayerImpl) SetChannelID ¶
func (p *PlayerImpl) SetChannelID(channelID *string)
func (*PlayerImpl) SetFilters ¶
func (p *PlayerImpl) SetFilters(filters *filters.Filters)
func (*PlayerImpl) SetLastSessionID ¶
func (p *PlayerImpl) SetLastSessionID(sessionID string)
func (*PlayerImpl) SetTrack ¶
func (p *PlayerImpl) SetTrack(track api.Track)
func (*PlayerImpl) SetVolume ¶
func (p *PlayerImpl) SetVolume(volume int)
func (*PlayerImpl) Stop ¶
func (p *PlayerImpl) Stop()
func (*PlayerImpl) Track ¶
func (p *PlayerImpl) Track() api.Track
func (*PlayerImpl) Volume ¶
func (p *PlayerImpl) Volume() int
type RestClientImpl ¶
type RestClientImpl struct {
// contains filtered or unexported fields
}
func (*RestClientImpl) LoadItem ¶
func (c *RestClientImpl) LoadItem(identifier string) (*api.LoadResult, error)
func (*RestClientImpl) LoadItemAsync ¶
func (c *RestClientImpl) LoadItemAsync(identifier string, audioLoaderResultHandler api.AudioLoaderResultHandler)
func (*RestClientImpl) SearchItem ¶
func (c *RestClientImpl) SearchItem(searchType api.SearchType, query string) ([]api.Track, *api.Exception)
Click to show internal directories.
Click to hide internal directories.