user

package
v0.0.0-...-0fca33f Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASUser

type ASUser struct {
	Mxid       string
	TwitchName string
	MXClient   *gomatrix.Client
}

ASUser contains the required Information for a User managed by the Appservice and holds a Matrix Client

type BotUser

type BotUser struct {
	Mxid        string
	TwitchName  string
	TwitchToken string
	Mux         sync.Mutex
	MXClient    *gomatrix.Client
}

BotUser contains the required Information for a Bot User and holds a Matrix Client as well as a Websocket for twitch that listens to the Channels

type RealUser

type RealUser struct {
	Mxid              string
	TwitchName        string
	TwitchTokenStruct *oauth2.Token
	TwitchHTTPClient  *http.Client
	TwitchWS          websocket.WebsocketHolder
	// Room holds a ID of a room with the Real User and the Bot
	Room string
	Mux  sync.Mutex
}

RealUser contains the required Information for a Real User and holds a Matrix Client as well as a Websocket for twitch that allows to send messages to twitch

Jump to

Keyboard shortcuts

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