handlers

package
v0.0.0-...-be9b8b1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: AGPL-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 KeyHandler

type KeyHandler struct {
	// contains filtered or unexported fields
}

KeyHandler is a handler for ppg key info

func NewKeyHandler

func NewKeyHandler(s *services.Crypto) *KeyHandler

NewKeyHandler creates new handler for public key queries

func (*KeyHandler) GetPublicKey

func (h *KeyHandler) GetPublicKey(w http.ResponseWriter, r *http.Request)

GetPublicKey return public key of push gateway

type PushNotificationHandler

type PushNotificationHandler struct {
	// contains filtered or unexported fields
}

PushNotificationHandler for sending and fetching push notifications

func NewPushNotificationHandler

func NewPushNotificationHandler(s notificationService, cs cachingService) *PushNotificationHandler

NewPushNotificationHandler create new instance of proxy

func (*PushNotificationHandler) Get

Get returns notification by identifier

func (*PushNotificationHandler) Send

Send proxy notification to matrix sygnal gateway

Jump to

Keyboard shortcuts

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