Documentation ¶
Overview ¶
Package httphandler contains an API handler for notification.Service.
Index ¶
- type Notification
- func (h Notification) CountNotifications(w http.ResponseWriter, req *http.Request) error
- func (h Notification) ListNotifications(w http.ResponseWriter, req *http.Request) error
- func (h Notification) MarkThreadRead(w http.ResponseWriter, req *http.Request) error
- func (h Notification) StreamNotifications(w http.ResponseWriter, req *http.Request) error
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
Click to show internal directories.
Click to hide internal directories.