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 ¶
func (h *PushNotificationHandler) Get(w http.ResponseWriter, r *http.Request)
Get returns notification by identifier
func (*PushNotificationHandler) Send ¶
func (h *PushNotificationHandler) Send(w http.ResponseWriter, r *http.Request)
Send proxy notification to matrix sygnal gateway
Click to show internal directories.
Click to hide internal directories.