notifications

package
v3.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProcessedMetric

func GenerateProcessedMetric(count int) proton.ObservabilityMetric

func GenerateReceivedMetric

func GenerateReceivedMetric(count int) proton.ObservabilityMetric

Types

type Service

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

func NewService

func NewService(userID string, service userevents.Subscribable, eventPublisher events.EventPublisher, store *Store,
	getFlagFn unleash.GetFlagValueFn, observabilitySender observability.Sender) *Service

func (*Service) HandleNotificationEvents

func (s *Service) HandleNotificationEvents(ctx context.Context, notificationEvents []proton.NotificationEvent) error

func (*Service) Start

func (s *Service) Start(ctx context.Context, group *orderedtasks.OrderedCancelGroup)

type Store

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

func NewStore

func NewStore(getCachePath func() (string, error)) *Store

Jump to

Keyboard shortcuts

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