notificationsapp: github.com/shurcooL/notificationsapp/httphandler Index | Files

package httphandler

import "github.com/shurcooL/notificationsapp/httphandler"

Package httphandler contains an API handler for notifications.Service.

Index

Package Files

httphandler.go

type Notifications Uses

type Notifications struct {
    Notifications notifications.Service
}

Notifications is an API handler for notifications.Service. It returns errors compatible with httperror package.

func (Notifications) Count Uses

func (h Notifications) Count(w http.ResponseWriter, req *http.Request) error

func (Notifications) List Uses

func (h Notifications) List(w http.ResponseWriter, req *http.Request) error

func (Notifications) MarkAllRead Uses

func (h Notifications) MarkAllRead(w http.ResponseWriter, req *http.Request) error

func (Notifications) MarkRead Uses

func (h Notifications) MarkRead(w http.ResponseWriter, req *http.Request) error

Package httphandler imports 5 packages (graph) and is imported by 2 packages. Updated 2017-10-10. Refresh now. Tools for package owners.