package
0.0.7
Repository: https://github.com/humans-group/go-apns.git
Documentation: pkg.go.dev

# Functions

MustNewClient creates new APNS client based on defined Options.
NewClientMock returns a mock for Client.
No description provided by the author
WithGateway specifies custom APN endpoint.
WithHTTPClient sets custom HTTP SimpleClient.
WithJWTAuthorization enables JWT authorization for apns requests.
WithTimeout sets HTTP SimpleClient timeout.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PushTypeAlert is used for notifications that trigger a user interaction — for example, an alert, badge, or sound.
PushTypeBackground is used for notifications that deliver content in the background, and don’t trigger any user interactions.
PushTypeComplication is used for notifications that contain update information for a watchOS app’s complications.
PushTypeFileProvider is used to signal changes to a File Provider extension.
PushTypeMDM is used for notifications that tell managed devices to contact the MDM server.
PushTypeVOIP is used for notifications that provide information about an incoming Voice-over-IP (VoIP) call.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Alert represents alert dictionary.
APS is Apple's reserved payload.
ClientMock implements Client.
ClientMockSendExpectation specifies expectation struct of the Client.Send.
ClientMockSendParams contains parameters of the Client.Send.
ClientMockSendResults contains results of the Client.Send.
JWTConfig a set of data required for JWT authorization.
No description provided by the author
Payload repsresents a data structure for APN notification.
easyjson:json.
RoundTripperJWTDecorator an implementation of http.RoundTripper interface with ability to specify authorization JWT token for each request.
SimpleClient represents the Apple Push Notification Service that you send notifications to.
No description provided by the author

# Interfaces

Client describes methods used to send apns notifications.

# Type aliases

ClientOption defines athe APNS SimpleClient option.
No description provided by the author
ErrorReason API error reasons https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/handling_notification_responses_from_apns.
PushType defines the value for the apns-push-type header.