httphandler

package
v0.0.0-...-c858694 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package httphandler contains an API handler for notification.Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Notification notification.Service
}

Notification is an API handler for notification.Service. It returns errors compatible with httperror package.

func (Notification) CountNotifications

func (h Notification) CountNotifications(w http.ResponseWriter, req *http.Request) error

func (Notification) ListNotifications

func (h Notification) ListNotifications(w http.ResponseWriter, req *http.Request) error

func (Notification) MarkThreadRead

func (h Notification) MarkThreadRead(w http.ResponseWriter, req *http.Request) error

func (Notification) StreamNotifications

func (h Notification) StreamNotifications(w http.ResponseWriter, req *http.Request) error

Jump to

Keyboard shortcuts

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