apns

package
v0.0.0-...-8a31c25 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APNS

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

APNS ...

func NewAPNS

func NewAPNS(pemFile string, production bool, log *slog.Logger) (apns *APNS, err error)

NewAPNS ...

func (*APNS) ConvertMessage

func (apns *APNS) ConvertMessage(data []byte) (smsg services.ServiceMessage, err error)

func (*APNS) ID

func (apns *APNS) ID() string

ID ...

func (*APNS) Logger

func (apns *APNS) Logger() *slog.Logger

func (*APNS) NewClient

func (apns *APNS) NewClient() (pclient services.PumpClient, err error)

func (*APNS) PushMessage

func (apns *APNS) PushMessage(pclient services.PumpClient, smsg services.ServiceMessage, fc services.FeedbackCollector) (status services.PushStatus)

func (*APNS) SquashAndPushMessage

func (apns *APNS) SquashAndPushMessage(client services.PumpClient, smsgs []services.ServiceMessage, fc services.FeedbackCollector) services.PushStatus

func (*APNS) String

func (apns *APNS) String() string

String ...

func (*APNS) Validate

func (apns *APNS) Validate(data []byte) (err error)

Validate ...

Jump to

Keyboard shortcuts

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