msgs

package
v0.0.0-...-2de30b4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NewDownloadSubject = "scurvy.notify.newdownload"

NewDownloadSubject - The subject name for the newdownload messages

View Source
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

func SendNatsMsg(Subject string, Msg NatsMsg)

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

type FailedDownload struct {
	Name string
	Path string
}

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

type NewDownload struct {
	Name string
	Path string
}

NewDownload - struct for Marshal'ing new download messages

type ReportFiles

type ReportFiles struct {
	Full    bool
	Changed bool
}

ReportFiles = struct for Marshal'ing the report files messages

Jump to

Keyboard shortcuts

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