Versions in this module Expand all Collapse all v0 v0.1.0 Aug 13, 2026 Changes in this version + func DefaultClientFactory(keyID, teamID, bundleID string, env apns.Env, key *ecdsa.PrivateKey) *apns.Client + type ClientCache struct + func NewClientCache(f ClientFactory) *ClientCache + func (c *ClientCache) Client(keyID, teamID, bundleID string, env apns.Env, key *ecdsa.PrivateKey) *apns.Client + func (c *ClientCache) Invalidate(keyID, teamID, bundleID string, env apns.Env) + type ClientFactory func(keyID, teamID, bundleID string, env apns.Env, key *ecdsa.PrivateKey) *apns.Client + type Credential struct + DaemonID string + ExpiresAt time.Time + InstallationID string + type Installation struct + AuthorizedDaemons map[string]struct{} + DeviceToken string + E2EPubKey []byte + Env apns.Env + ID string + KeyID string + LAToken string + TokenStale bool + type PushAlertsRequest struct + CollapseHint string + Envelopes []hpke.Envelope + ExpiresAt int64 + InstallationID string + KeyID string + type PushResult struct + Accepted int + Deduplicated int + RequestID string + RetryAfter int + type RegisterRequest struct + DaemonID string + DeviceToken string + E2EPubKey []byte + Env apns.Env + InstallationID string + KeyID string + LAToken string + ProtoVersion int + type Server struct + BundleID string + Clients *ClientCache + ConfiguredEnv apns.Env + KeyID string + Resolve func(r *http.Request) (*Credential, error) + Store *Store + TeamID string + func NewServer(store *Store, clients *ClientCache, env apns.Env, ...) *Server + func (s *Server) Close() + func (s *Server) FlushAlerts() + func (s *Server) Handler() http.Handler + func (s *Server) SetAlertSender(...) + func (s *Server) SetBootstrapCredential(token, daemonID string) + func (s *Server) SetLiveActivitySender(...) + func (s *Server) SetPublisherKey(key *ecdsa.PrivateKey) + func (s *Server) SetVerifyKey(key ed25519.PublicKey) + type Store struct + func NewStore() *Store + func (s *Store) Authorized(installationID, daemonID string) bool + func (s *Store) Get(installationID string) (Installation, bool) + func (s *Store) IsStale(installationID string) bool + func (s *Store) MarkStale(installationID string) bool + func (s *Store) Register(req RegisterRequest) (Installation, bool) + func (s *Store) UnregisterDaemon(installationID, daemonID string) bool