push

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: 3 Imported by: 4

Documentation

Overview

Package push defines interfaces, types, etc. related to MDM APNs push notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PushProvider

type PushProvider interface {
	Push(context.Context, []*mdm.Push) (map[string]*Response, error)
}

PushProvider can send 'raw' MDM APNs push notifications.

The non-error return type maps the string value of the push token (that is, the hex encoding of the bytes) to a pointer to a Response.

type PushProviderFactory

type PushProviderFactory interface {
	NewPushProvider(*tls.Certificate) (PushProvider, error)
}

PushProviderFactory generates a new PushProvider given a tls keypair

type Pusher

type Pusher interface {
	Push(context.Context, []string) (map[string]*Response, error)
}

Pusher sends MDM APNs notifications to enrollments identified by a string.

type Response

type Response struct {
	Id  string
	Err error
}

Directories

Path Synopsis
Pacakge buford adapts the buford APNs push package to the PushProvider and PushProviderFactory interfaces.
Pacakge buford adapts the buford APNs push package to the PushProvider and PushProviderFactory interfaces.
Pacakge nanopush implements an Apple APNs HTTP/2 service for MDM.
Pacakge nanopush implements an Apple APNs HTTP/2 service for MDM.
Package service retrieves push details from storage and sends MDM push notifications.
Package service retrieves push details from storage and sends MDM push notifications.

Jump to

Keyboard shortcuts

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