services

package
v0.0.0-...-ebc5dce Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Services []Service

Services is an accessible export to list all supported services

Functions

func RegisterService

func RegisterService(service Service)

RegisterService is called on init for all services

Types

type FacebookService

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

FacebookService handles RTMP and chat for Facebook

func (*FacebookService) CanConnect

func (f *FacebookService) CanConnect() bool

CanConnect returns a bool whether all configuration is available to connect to RTMP

func (*FacebookService) ConnectChat

func (f *FacebookService) ConnectChat() error

ConnectChat connects to chat service if available

func (*FacebookService) ConnectRTMP

func (f *FacebookService) ConnectRTMP() *rtmp.Conn

ConnectRTMP connects to RTMP server

func (*FacebookService) Name

func (f *FacebookService) Name() string

Name returns the name of the service

type Service

type Service interface {
	CanConnect() bool
	ConnectChat() error
	ConnectRTMP() *rtmp.Conn
	Name() string
}

Service is the interface for Services

type TwitchService

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

TwitchService handles RTMP and chat for Twitch

func (*TwitchService) CanConnect

func (t *TwitchService) CanConnect() bool

CanConnect returns a bool whether all configuration is available to connect to RTMP

func (*TwitchService) ConnectChat

func (t *TwitchService) ConnectChat() error

ConnectChat connects to chat service if available

func (*TwitchService) ConnectRTMP

func (t *TwitchService) ConnectRTMP() *rtmp.Conn

ConnectRTMP connects to RTMP server

func (*TwitchService) Name

func (t *TwitchService) Name() string

Name returns the name of the service

type YoutubeService

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

YoutubeService handles RTMP and chat for Youtube

func (*YoutubeService) CanConnect

func (y *YoutubeService) CanConnect() bool

CanConnect returns a bool whether all configuration is available to connect to RTMP

func (*YoutubeService) ConnectChat

func (y *YoutubeService) ConnectChat() error

ConnectChat connects to chat service if available

func (*YoutubeService) ConnectRTMP

func (y *YoutubeService) ConnectRTMP() *rtmp.Conn

ConnectRTMP connects to RTMP server

func (*YoutubeService) Name

func (y *YoutubeService) Name() string

Name returns the name of the service

Jump to

Keyboard shortcuts

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