internal

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLavalinkImpl

func NewLavalinkImpl(logger log.Logger, httpClient *http.Client, userID dapi.Snowflake) api.Lavalink

func NewPlayer

func NewPlayer(node api.Node, guildID dapi.Snowflake) api.Player

Types

type DisgolinkImpl added in v0.1.0

type DisgolinkImpl struct {
	api.Lavalink
}

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 dapi.Snowflake) api.Player

func (*LavalinkImpl) Logger

func (l *LavalinkImpl) Logger() log.Logger

func (*LavalinkImpl) Node

func (l *LavalinkImpl) Node(name string) api.Node

func (*LavalinkImpl) Player

func (l *LavalinkImpl) Player(guildID dapi.Snowflake) api.Player

func (*LavalinkImpl) Players

func (l *LavalinkImpl) Players() map[dapi.Snowflake]api.Player

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 dapi.Snowflake)

func (*LavalinkImpl) UserID

func (l *LavalinkImpl) UserID() dapi.Snowflake

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) Close

func (n *NodeImpl) Close()
func (n *NodeImpl) Lavalink() api.Lavalink

func (*NodeImpl) Name

func (n *NodeImpl) Name() string

func (*NodeImpl) Open

func (n *NodeImpl) Open() error

func (*NodeImpl) Options

func (n *NodeImpl) Options() *api.NodeOptions

func (*NodeImpl) RestClient

func (n *NodeImpl) RestClient() api.RestClient

func (NodeImpl) RestURL

func (n NodeImpl) RestURL() string

func (*NodeImpl) Send

func (n *NodeImpl) Send(d interface{})

func (*NodeImpl) Stats

func (n *NodeImpl) Stats() *api.Stats

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() *dapi.Snowflake

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() dapi.Snowflake

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) PlayAt

func (p *PlayerImpl) PlayAt(track api.Track, start int, end int)

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 *dapi.Snowflake)

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

func (*RestClientImpl) LoadItemHandler added in v0.2.4

func (c *RestClientImpl) LoadItemHandler(identifier string, audioLoaderResultHandler api.AudioLoaderResultHandler)

func (*RestClientImpl) SearchItem

func (c *RestClientImpl) SearchItem(searchType api.SearchType, query string) ([]api.Track, *api.Exception)

Jump to

Keyboard shortcuts

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