owncast

package
v0.0.0-...-fefc7c0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendActionMessage

func SendActionMessage(text string) error

SendActionMessage will send an action message to Owncast chat.

func SendSystemMessage

func SendSystemMessage(text string) error

SendSystemMessage will send an official message on behalf of the system.

func SendUserMessage

func SendUserMessage(text string) error

SendUserMessage will send an official message on behalf of the user..

func SetStreamTitle

func SetStreamTitle(title string) error

SetStreamTitle will set the stream title.

func Setup

func Setup(server string, accessToken string)

Setup will initialize the Owncast integration with a server url and access token.

Types

type Config

type Config struct {
	Value string `json:"value"`
}

Config is a generic wrapper around an Owncast config value.

type Message

type Message struct {
	Author string `json:"author,omitempty"`
	Body   string `json:"body"`
}

Message represents an Owncast chat-based message.

Jump to

Keyboard shortcuts

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