notification

package
v0.0.0-...-90e0d95 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 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 Handler

type Handler interface {
	SubscribeUser(w http.ResponseWriter, r *http.Request)
	UnsubscribeUser(w http.ResponseWriter, r *http.Request)
	GetNotificationPublicKey(w http.ResponseWriter, r *http.Request)
}

type Repository

type Repository interface {
	AddSubscribeUser(userId uint64, subscribes *models.Subscribes) error
	DeleteSubscribeUser(userId uint64) error
	SelectCredentialsByUserId(userId uint64) (*models.Subscribes, error)
}

type UseCase

type UseCase interface {
	SubscribeUser(userId uint64, credentials *models.NotificationCredentials) error
	UnsubscribeUser(userId uint64, endpoint string) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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