Documentation
¶
Overview ¶
Pacakge buford adapts the buford APNs push package to the PushProvider and PushProviderFactory interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPushProviderFactory ¶
func NewPushProviderFactory(opts ...Option) *bufordFactory
NewPushProviderFactory creates a new instance that can spawn buford Services
Types ¶
type NewClient ¶
type NewClient func(*tls.Certificate) (*http.Client, error)
NewClient describes a callback for setting up an HTTP client for Push notifications.
type Option ¶
type Option func(*bufordFactory)
func WithExpiration ¶
WithExpiration sets the APNs expiration time for the push notifications.
func WithNewClient ¶
WithNewClient sets a callback to setup an HTTP client for each new Push provider.
func WithWorkers ¶
WithWorkers sets how many worker goroutines to use when sending multiple push notifications.
Click to show internal directories.
Click to hide internal directories.