thor

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT

README


PkgGoDev

This is T.H.O.R. - ThundeRatz Holistic Operational Robot - It is ThundeRatz's virtual entity and it was created to be a central point where all the team's virtual presence can be connected and managed. It has a core and multiple services, it is a very early stage and most things are NYI.

Core

core/

The core is the central part of T.H.O.R. it receives events from multiple services through a go channel and act upon them, replying to the service, sending events to other services and logging everything.

Services

services/

Services are responsible to deal with a single virtual "entity" and ThundeRatz's presence within it, like GitHub, Discord, Social Networks, Team's servers, APIs etc...

GitHub

services/github

This service is a GitHub app that can receive webhook events from GitHub and also post in issues, PRs and everything else a GitHub app can do. It sends the webhook events to the core.

Discord

services/discord

This service is a Discord bot that can receive webhook events from Discord and also post in channels. It sends the webhook events to the core.

One already implement connection is: GitHub Issue -> Core -> Discord Alert

Other Services

NYI

Packages

There are some "lower-level" packages at pkg that wraps other libraries and serves as building blocks for the services and the core.

Directories

Path Synopsis
cmd
types
Package types exposes types for the services to communicate with the core
Package types exposes types for the services to communicate with the core
pkg
dclient
Package dclient is a wrapper around DiscordGo library
Package dclient is a wrapper around DiscordGo library
gclient
Package gclient wraps google/go-github for use with T.H.O.R.
Package gclient wraps google/go-github for use with T.H.O.R.
static
Package static contains utility to work with ThundeRatz static files server https://static.thunderatz.org/
Package static contains utility to work with ThundeRatz static files server https://static.thunderatz.org/
ytclient
Package ytclient wraps google.golang.org/api/youtube/v3 for use with T.H.O.R.
Package ytclient wraps google.golang.org/api/youtube/v3 for use with T.H.O.R.
services
api
discord
Package discord is the discord module for T.H.O.R.
Package discord is the discord module for T.H.O.R.

Jump to

Keyboard shortcuts

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