pubsub

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package pubsub implements highlivel Twitch PubSub helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub struct {
	RawPubSubHook func(topic, chanid string, msg []byte)
	LiveHook      func(string, string, int)
	LiveCache     *live.Cache
	// contains filtered or unexported fields
}

func New

func New() *PubSub

func (*PubSub) AddTopics

func (ps *PubSub) AddTopics(topics []string)

func (*PubSub) PubSubMessage

func (b *PubSub) PubSubMessage(topic, chanid string, msg []byte)

func (*PubSub) RemoveTopics

func (ps *PubSub) RemoveTopics(topics []string)

Jump to

Keyboard shortcuts

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