domain

package
v0.0.0-...-a67b36e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAuthorized = fmt.Errorf("user is not authorized")
)

Functions

This section is empty.

Types

type NotificationLogic

type NotificationLogic interface {
	IsLoggedIn(ctx context.Context, token string) (*common.AuthedUser, errors.Api)
	OpenSocket(ctx context.Context, w http.ResponseWriter, r *http.Request) error
	EventAppInvite(ctx context.Context, notification notifyhub.IncomingEvent)

	HideNotification(ctx context.Context, notify notifyhub.HideEvent)
	RemoveNotifcation(ctx context.Context, notify notifyhub.RemoveEvent)
}

func NewNotificationLogic

func NewNotificationLogic(userauthC userauthsvc.UserAuthenticationClient, notifyHub *notifyhub.NotifyHub) NotificationLogic

Jump to

Keyboard shortcuts

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