Documentation
¶
Overview ¶
Package phocus_api is the wrapper for the http and queueing api
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Queue = []phocus_messages.Message{ {ID: uuid.New(), Command: "QID", Payload: ""}, }
Queue of messages seeded with QID to run at startup
View Source
var QueueMutex sync.Mutex
Functions ¶
func DeleteMessage ¶
DeleteMessage attempts to delete a specified message from the Queue
func GetMessage ¶
GetMessage attempts to select a specified message from the Queue and returns it or fails
func PostMessage ¶
PostMessage enQueues a new message manually (requires knowledge of commands and a generated uuid on the request)
func QueueQPGSn ¶
func QueueQPGSn()
QueueQPGSn is a simple loop to add QPGSn to the Queue as long as it isn't too long
func SetupRouter ¶
SetupRouter add the endpoints on the router for Queue management
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.