notifications

package
v0.0.0-...-7341660 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationHandler

type NotificationHandler struct {
	Config        *configuration.Config
	EventStore    *events.EventStore
	IdentityStore *identities.IdentityStore
}

func NewNotificationHandler

func NewNotificationHandler(config *configuration.Config, eventStore *events.EventStore, identityStore *identities.IdentityStore) *NotificationHandler

func (*NotificationHandler) GetNotification

func (h *NotificationHandler) GetNotification(w http.ResponseWriter, r *http.Request)

func (*NotificationHandler) PostNotification

func (h *NotificationHandler) PostNotification(w http.ResponseWriter, r *http.Request)

func (*NotificationHandler) SendMsg

func (h *NotificationHandler) SendMsg(identity identities.Identity, msg string) error

type RequestEventNotificationModel

type RequestEventNotificationModel struct {
	ChatId string `json:"chatId"`
	Day    string `json:"day"`
}

type TouchpointMsgModel

type TouchpointMsgModel struct {
	Identity identities.Identity `json:"identity"`
	Msg      string              `json:"msg"`
}

Jump to

Keyboard shortcuts

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