Documentation ¶
Index ¶
Constants ¶
const NewDownloadSubject = "scurvy.notify.newdownload"
NewDownloadSubject - The subject name for the newdownload messages
const ReportFilesSubject = "scurvy.notify.reportfiles"
ReportFilesSubject = The subject name for the messages that tell syncd to update the list of local files to the master
Variables ¶
This section is empty.
Functions ¶
func SendNatsMsg ¶
SendNatsMsg - send a commonly formatted Nats message to the message queue
func SendNatsPing ¶
func SendNatsPing(Who string)
SendNatsPing - send a ping message to nats, there's something on the other end that listens and alerts if a host doesn't check in for a while Nothing in this function should panic... the pings aren't that important
Types ¶
type DiskFull ¶
type DiskFull struct {
Message string
}
DiskFull - struct for Marshal'ing disk full messages from SABNZBD
type FailedDownload ¶
FailedDownload - struct for Marshal'ing new download messages
type NatsMsg ¶
type NatsMsg interface {
// contains filtered or unexported methods
}
NatsMsg - a msg that we send to the Nats MQ bus
type NewDownload ¶
NewDownload - struct for Marshal'ing new download messages
type ReportFiles ¶
ReportFiles = struct for Marshal'ing the report files messages