notifications

package
v0.0.0-...-dfd90ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(userID int, notificationType string, data interface{}) (int, error)
	Get(notificationID int) (*models.Notification, error)
	ListUnreadByUser(userID int) ([]models.Notification, error)
	MarkAsRead(notificationID int) error
}

type Service

type Service interface {
	HandleConnection(userID int, conn *ws.Conn) error
	Create(userID int, notificationType string, data interface{}) error
	ListUnreadByUser(userID int) ([]models.Notification, error)
}

Directories

Path Synopsis
delivery
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
repository

Jump to

Keyboard shortcuts

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