TwitchEventSubHandler

module
v0.0.0-...-44cae3a Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT

README

Twitch EventSub Handler

This repository aims to represent how I will be handling EventSub notifications from Twitch

Go Report Card

Setup Dev Environment

  • Rename sample.env to .env and edit values as needed
  • Run docker containers with docker compose up
  • Run the package with go run twitch_receiver/cmd/main.go

Goose Documentation

EXPORT GOOSE_DRIVER="postgres"
EXPORT GOOSE_DBSTRING="postgres://test:password@localhost:5432/test"
EXPORT GOOSE_MIGRATION_DIR="shared/database/migrations/"
go install github.com/pressly/goose/v3/cmd/goose@latest
goose up
$env:"GOOSE_DRIVER" = "postgres"
$env:"GOOSE_DBSTRING" = "postgres://test:password@localhost:5432/test"
$env:"GOOSE_MIGRATION_DIR" = "shared/database/migrations/"
go install github.com/pressly/goose/v3/cmd/goose@latest
goose up

Directories

Path Synopsis
shared
models/eventsub
Copied from Twitch CLI https://github.com/twitchdev/twitch-cli/blob/83b47aa44a986d3ff47d3800d3fee7983813a7a4/internal/models/authorization_revoke.go
Copied from Twitch CLI https://github.com/twitchdev/twitch-cli/blob/83b47aa44a986d3ff47d3800d3fee7983813a7a4/internal/models/authorization_revoke.go
twitch_discord_notifier
cmd/notifier command
twitch_receiver
cmd/receiver command

Jump to

Keyboard shortcuts

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