Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Coccodrillo/apns
/ types & classes
Types & classes
8 in github.com/Coccodrillo/apns
⨍
Functions
32
◇
Types & classes
8
Interface
APNSClient
APNSClient is an APNS client.
client.go:14
Struct
AlertDictionary
AlertDictionary is a more complex notification payload. From the APN docs: "Use the ... alert dictionary in general only if you absolutely need to."
push_notification.go:59
Struct
Client
Client contains the fields necessary to communicate with Apple, such as the gateway to use and your certificate contents. You'll need to provide your
client.go:29
Struct
FeedbackResponse
FeedbackResponse represents a device token that Apple has indicated should not be sent to in the future.
feedback.go:25
Struct
MockClient
client_mock.go:5
Struct
Payload
Payload contains the notification data for your request. Alert is an interface here because it supports either a string or a dictionary, represented
push_notification.go:42
Struct
PushNotification
PushNotification is the wrapper for the Payload. The length fields are computed in ToBytes() and aren't represented here.
push_notification.go:77
Struct
PushNotificationResponse
PushNotificationResponse details what Apple had to say, if anything.
push_notification_response.go:24