ircon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: BSD-2-Clause Imports: 6 Imported by: 2

Documentation

Overview

Package ircon maintains a connection to the Twitch IRC service.

Index

Constants

View Source
const DefaultServer = "wss://irc-ws.chat.twitch.tv/"

DefaultServer is the default Twitch "IRC" server used by e.g. web chat

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Connected()
	Disconnected(err error)
	Message(*irc.Message)
}

type IRCon

type IRCon struct {
	Handler Handler
	// contains filtered or unexported fields
}

func New

func New(nick, passwd string) *IRCon

func (*IRCon) Background

func (i *IRCon) Background(ctx context.Context)

func (*IRCon) Send

func (i *IRCon) Send(s string)

type Message

type Message = irc.Message

Jump to

Keyboard shortcuts

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