miketheprogrammer/go-thrust

x/ Packages

miketheprogrammer opened this issue · 2 comments

While waiting for ThrustCore to release a new version, we are charged with trying to figure out a great way to actually improve prototype speed of applications.

In the vain of Golang.org /x packages have been added to thrust. These are packages that are unnecessary to the normal operation of thrust and are optional.

Some thoughts on /x packages

  • Package web
    • Basic Handler to serve a basic js api for Thrust.
    • SSE ( Server Sent Events ) - useful for debugging, we could expose a channel and tie it into loggers or virtually anything.
    • Messaging ( Bi directional messaging over websockets ) - This library would essentially be a higher level of out commands api, connecting into the dispatcher. Every time a dispatcher dispatches a CommandResponse it would be sent to the connected sockets, whenever a socket sends a Command it would be raw executed with its targets .Call method.
    • Debug
      • Expose a handler that loads a debug page.
      • Expose a JS Api that loads debug interface into your current running app.
      • Debug should be able to show SSE, Messaging and any ExpVar uses.

The only /x Package that would make sense is a debug panel or debug frontend interface.

Closing and remaking as Debug Panel