messaging

package
v0.0.0-...-bd02bc2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func AddMsgAPI

func AddMsgAPI(msgApi MsgAPI)

Add Messaging APIs that will be used to send messages

func SendJoinEventMessage

func SendJoinEventMessage(e *db.Event, member *db.Member)

func SendNewEventMessage

func SendNewEventMessage(e *db.Event)

func SendTwitchStreamMessage

func SendTwitchStreamMessage(sm StreamMessage)

Types

type MsgAPI

type MsgAPI interface {
	PostStreamMessage(sm StreamMessage) error
	PostNewEventMessage(e *db.Event) error
	PostJoinEventMessage(e *db.Event, member string) error
}

type StreamMessage

type StreamMessage struct {
	Platform         string
	PlatformColor    string
	PlatformColorInt int
	Username         string
	URL              string
	Description      string
	Timestamp        string
	ThumbnailURL     string
}

Jump to

Keyboard shortcuts

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