service

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package service retrieves push details from storage and sends MDM push notifications.

Index

Constants

This section is empty.

Variables

View Source
var ErrIdNotFound = errors.New("push data missing for id")

Functions

This section is empty.

Types

type PushService

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

PushService uses PushStore to retrieve Push details for MDM enrollments and send APNs pushes using a PushProvider.

func New

func New(store storage.PushStore, certStore storage.PushCertStore, providerFactory push.PushProviderFactory, logger log.Logger) *PushService

NewPushService creates a new PushService.

func (*PushService) Push

func (s *PushService) Push(ctx context.Context, ids []string) (map[string]*push.Response, error)

Push sends an APNs push notification to MDM enrollment id

Jump to

Keyboard shortcuts

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