consolenotifications

package
v0.31.8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = errs.Class("notifications console web error")

Error is error type of storagenode web console.

Functions

This section is empty.

Types

type Notifications

type Notifications struct {
	// contains filtered or unexported fields
}

Notifications represents notification service. architecture: Service

func NewNotifications

func NewNotifications(log *zap.Logger, service *notifications.Service) *Notifications

NewNotifications creates new instance of notification service.

func (*Notifications) ListNotifications

func (notification *Notifications) ListNotifications(w http.ResponseWriter, r *http.Request)

ListNotifications returns listed page of notifications from database.

func (*Notifications) ReadAllNotifications

func (notification *Notifications) ReadAllNotifications(w http.ResponseWriter, r *http.Request)

ReadAllNotifications updates all notifications in database as read.

func (*Notifications) ReadNotification

func (notification *Notifications) ReadNotification(w http.ResponseWriter, r *http.Request)

ReadNotification updates specific notification in database as read.

Jump to

Keyboard shortcuts

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