client

package
v0.0.0-...-a9e5fbf Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitchClient

type TwitchClient struct {
	// Inner twitch IRC chat client
	*twitch_irc.Client
}

TwitchClient is Wrapper struct for existing Twitch IRC client.

type TwitchClientT

type TwitchClientT interface {
	Connect() error
	Disconnect() error

	Join(channels ...string)
	Depart(channel string)

	Say(channel, text string)

	OnConnect(callback func())
	OnPrivateMessage(callback func(message twitch_irc.PrivateMessage))
}

TwitchClientT is the general interface for Twitch IRC client TOOD: Function signature of OnPrivateMessage is currently tied to go-twitch-irc library.

func NewTwitchClient

func NewTwitchClient(username, oauthToken string) TwitchClientT

NewTwitchClient creates new client.

Directories

Path Synopsis
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.

Jump to

Keyboard shortcuts

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