service

package
v0.0.0-...-54a4899 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushoverNotification

func PushoverNotification(msg Notification, device model.Device) error

func SendCounterNotification

func SendCounterNotification(start bool, sourceUser model.User, counterId uint, sessionId uint, sessionTaken string)

func SendGenericNotification

func SendGenericNotification(title string, body string, device model.Device)

func SendGenericNotificationToAllDevices

func SendGenericNotificationToAllDevices(title string, body string, ignoreUsers []int)

Types

type Notification

type Notification struct {
	Id        uint   `json:"id"`
	SessionId uint   `json:"sessionId"`
	Type      string `json:"type"`
	Title     string `json:"title"`
	Msg       string `json:"msg"`
}

Jump to

Keyboard shortcuts

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