mocktwitch

package module
v0.0.0-...-7cdf71f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 23 Imported by: 1

README

mocktwitch

A service that mocks Twitch's IRC(tmi) and API(helix) services.

Started as and adaptation of the test IRC server from github.com/gempir/go-twitch-irc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keys

type Keys struct {
	CertFilename string
	KeyFilename  string
}

type Twitch

type Twitch struct {
	IrcHost     string
	ApiUrlBase  string
	Errors      chan error
	ForceErrors bool
	SquelchIrc  bool

	IrcMeassageChan chan string

	// Keys is public so that downstream tests can use them.
	Keys *Keys

	ChannelStatus  protocol.Channel
	ChannelFollows protocol.ChannelFollows
	// contains filtered or unexported fields
}

func NewTwitch

func NewTwitch() (*Twitch, error)

func (*Twitch) Close

func (t *Twitch) Close()

func (*Twitch) SendMessage

func (t *Twitch) SendMessage(channel string, author string, message string)

func (*Twitch) SetChannelStatus

func (t *Twitch) SetChannelStatus(status *protocol.Channel)

Jump to

Keyboard shortcuts

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