listen

package
v0.0.0-...-4c708ec Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageLatencyView = &view.View{
		Name:        "messages/latency",
		Measure:     messageLatency,
		Description: "The distribution of the latencies",
		TagKeys:     []tag.Key{keyMessageType, keyExitCode, keyChannel, keyDisplayName},
		Aggregation: view.Distribution(0, 1, 2, 5, 10, 25, 100, 200, 400, 800, 10000),
	}

	MessageTotalView = &view.View{
		Name:        "messages/total",
		Measure:     messageLatency,
		Description: "The number of messages that were received",
		TagKeys:     []tag.Key{keyMessageType, keyExitCode, keyChannel, keyDisplayName},
		Aggregation: view.Count(),
	}
)

Functions

func NewListenCommand

func NewListenCommand(logger *logging.Logger) *cobra.Command

NewListenCommand creates a cobra command given a logger.

This will listen for messages on the queue and push them to webhookd to be sent to clients.

func ReadMessages

func ReadMessages(ctx context.Context, logger logr.Logger, twitchChat chat.TwitchChatClient, channel string, pattern string, args []string, msgs <-chan *messages.TwitchMessage) error

ReadMessages reads and processes the messages, returning a response if required

func RegisterDefaultViews

func RegisterDefaultViews()

Types

This section is empty.

Jump to

Keyboard shortcuts

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