package
0.0.0-20200409172854-0805cb333282
Repository: https://github.com/uniqush/uniqush-push.git
Documentation: pkg.go.dev
# Packages
Package mocks implements a mock APNS server, for unit tests.
# Functions
NewPool creates a thread with numWorkers workers, which will wait until they are first needed to open a connection.
NewRequestProcessor will instantiate a worker pool for processing push attempts, with a total of poolSize workers, each maintaining at most one active encrypted TCP connection to APNs at a time.
# Constants
CloseTimeout is the timeout for closing inactive APNs binary API (encrypted TCP) connections.
# Structs
BinaryPushRequestProcessor contains the logic for V2 of the Binary Provider API.
PermanentError is returned by a worker because of an error that can't be fixed at the moment (e.g.
Pool is a fixed-size pool of workers responsible for sending payloads to APNs.
TemporaryError is returned by a worker for problems that can be fixed by retrying.
# Interfaces
ConnManager abstracts creating TLS sockets to send push payloads to APNs.