httphandler

package
Version: v0.0.0-...-356cc46 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package httphandler contains an API handler for notifications.Service.

Index

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 (Notifications) List

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

Source Files

Jump to

Keyboard shortcuts

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