buford

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 8 Imported by: 1

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

func WithExpiration(expiration time.Duration) Option

WithExpiration sets the APNs expiration time for the push notifications.

func WithNewClient

func WithNewClient(newClientCallback NewClient) Option

WithNewClient sets a callback to setup an HTTP client for each new Push provider.

func WithWorkers

func WithWorkers(workers uint) Option

WithWorkers sets how many worker goroutines to use when sending multiple push notifications.

Jump to

Keyboard shortcuts

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