fakebee

command module
v0.0.0-...-111e4ad Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 1 Imported by: 0

README

Fake Bee

FakeBee is a CLI tool that generates fake Youtube Live events, and can produce them either to standard output or to a Kafka broker.

Usage

make
./bin/fb start -b kafka --broker <broker addr>:9092

If you need more info about commands, use the -h flag.

Configuration

Add the file fb_config.json to your HOME directory, or to the current working directory.

You can find an example in fb_config.json

Docker
docker build --tag fakebee .
docker run fakebee

Worker hierarchy

Each EventWorker produces one kind of events to one specific Kafka topic.

erDiagram
  Queen ||--|{ EventWorker: manages

  EventWorker {
   string Topic
   int Interval
   int BacklogSize
   string OriginChannelId
   string OriginVideoId
  }

An origin is simply an entity representing a fake source of live chat events (a Youtube Live stream from a specific channel).

The topic can be one of:

  • chats
  • superchats
  • superstickers
  • memberships
  • milestones
  • banactions
  • deleteactions

fakebee will create a corresponding Kafka topic if it does not exist in the cluster.

Documentation

Overview

Copyright © 2022 Daniils Petrovs <[email protected]>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳