Documentation ¶
Index ¶
- type Error
- type Relay
- func (r *Relay) Connect() error
- func (r *Relay) Connected() bool
- func (r *Relay) ContainsTitle(title string) bool
- func (r *Relay) Disconnect()
- func (r *Relay) L(ctx context.Context) *zap.Logger
- func (r *Relay) OnError(fn irc.OnError)
- func (r *Relay) OnUpdate(fn func(Update))
- func (r *Relay) PushBack(anime domain.AnimeBase, state *queue.State) bool
- func (r *Relay) PushFront(anime domain.AnimeBase, state *queue.State) bool
- func (r *Relay) QueueIsActive(anime domain.AnimeBase) bool
- func (r *Relay) ShouldBroadcast() bool
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
func NewRelay ¶
func NewRelay( irc *irc.IRC, queue *queue.Queue, services lifecycle.ServiceLifecycle, fs *fs.FileSystem, ) (r *Relay)
func (*Relay) ContainsTitle ¶
ContainsTitle will return a boolean if the title is currently in the active item list within the queue.
func (*Relay) Disconnect ¶
func (r *Relay) Disconnect()
Disconnect closes the the IRC along with the Queue
func (*Relay) QueueIsActive ¶
QueueIsActive returns if the provided anime is in the queue.
func (*Relay) ShouldBroadcast ¶
ShouldBroadcast checks if the queue length is greater than 0 and the queue limit is also greater than 0.
Click to show internal directories.
Click to hide internal directories.