firehose

package
v0.0.0-...-d0bd67e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package firehose is used for twitch's firehose

Index

Constants

View Source
const AppName string = "goPurple/firehose"

AppName is the name of the application

FullVersion contains the full name and version of this package in a printable string

View Source
const VersionBuild string = "s"

VersionBuild is the type of this release. s(table), b(eta), d(evelopment), n(ightly)

View Source
const VersionMajor string = "0"

VersionMajor 0 means in development, >1 ensures compatibility with each minor version, but breakes with new major version

View Source
const VersionMinor string = "1"

VersionMinor introduces changes that require a new version number. If the major version is 0, they are likely to break compatibility

Variables

This section is empty.

Functions

This section is empty.

Types

type Firehose

type Firehose struct {
	// contains filtered or unexported fields
}

Firehose offers an interface to twitch tmi's firehose. Use with caution.

func (*Firehose) Connect

func (f *Firehose) Connect(token string) (messageQueue chan Message, err error)

Connect to Firehose with given OAuth token

func (*Firehose) Disconnect

func (f *Firehose) Disconnect()

Disconnect from firehose

type Message

type Message struct {
	Command string            `json:"command"`
	Room    string            `json:"room"`
	Nick    string            `json:"nick"`
	Target  string            `json:"target"`
	Body    string            `json:"body"`
	Tags    map[string]string `json:"tags"`
	Raw     string
}

Message is the Firehose version of an IRC message

Jump to

Keyboard shortcuts

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