Documentation
¶
Overview ¶
Package httphandler contains an API handler for notifications.Service.
Index ¶
- type Notifications
- func (h Notifications) Count(w http.ResponseWriter, req *http.Request) error
- func (h Notifications) List(w http.ResponseWriter, req *http.Request) error
- func (h Notifications) MarkAllRead(w http.ResponseWriter, req *http.Request) error
- func (h Notifications) MarkRead(w http.ResponseWriter, req *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifications ¶
type Notifications struct {
Notifications notifications.Service
}
Notifications is an API handler for notifications.Service. It returns errors compatible with httperror package.
func (Notifications) Count ¶
func (h Notifications) Count(w http.ResponseWriter, req *http.Request) error
func (Notifications) List ¶
func (h Notifications) List(w http.ResponseWriter, req *http.Request) error
func (Notifications) MarkAllRead ¶
func (h Notifications) MarkAllRead(w http.ResponseWriter, req *http.Request) error
func (Notifications) MarkRead ¶
func (h Notifications) MarkRead(w http.ResponseWriter, req *http.Request) error